/* ============================================================
   DnD Карты v2.8.0 — стили окна игры (нативный рендер V2)
   v2.8.0: ПЕРЕСБОРКА UI — современный стиль вместо «старомодной
   игры в карты»: фиолетовая бездна (images/bg2.jpg), стеклянные
   панели dcc-glass, сияющий заголовок, парящие частицы, градиентные
   рамки dcc-hero-btn, индекс-хаб с профилем слева внизу, бесплатные
   призывы. Бой «воздушнее»: боковая панель уходит вниз до 1024px,
   карточки крупнее, портреты не сжимаются (object-fit: cover).
   v2.7.0: +экран призыва, жетоны монет, гемы редкостей, замки.
   ============================================================ */

.dnd-cards .window-content {
  overflow: auto;
  padding: 0;
}

.dcc-root {
  --dcc-bg: #0c0a14;
  --dcc-card: #201b30;
  --dcc-tx: #eef0ff;
  --dcc-mu: #a7a3c4;
  --dcc-ac: #8b5cf6;
  --dcc-bd: rgba(255, 255, 255, 0.14);
  --dcc-ok: #34d399;
  color: #eef0ff;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  /* v2.8.0: фиолетовая бездна с магическим туманом и золотыми частицами —
     тёмная вуаль поверх фото, текст остаётся светлым и читаемым */
  background:
    linear-gradient(160deg, rgba(13, 10, 24, .88) 0%, rgba(16, 12, 28, .8) 40%, rgba(10, 14, 20, .86) 100%),
    radial-gradient(ellipse at 82% -10%, rgba(167, 139, 250, .22), transparent 55%),
    radial-gradient(ellipse at 8% 110%, rgba(45, 212, 191, .14), transparent 50%),
    url("../images/bg2.jpg") center / cover no-repeat,
    #0c0a14;
  padding: 10px;
  min-height: 100%;
  box-sizing: border-box;
}
.dcc-root *, .dcc-root *::before, .dcc-root *::after { box-sizing: border-box; }

.dcc-root h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  margin: 0 0 6px;
  text-align: center;
  color: #f4f2ff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* Бейдж версии на индексе: сразу видно, свежий ли модуль установлен */
.dcc-ver {
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .4px;
  color: #c4b5fd;
  background: rgba(0, 0, 0, .4);
  border: 1px solid rgba(196, 181, 253, .45);
  border-radius: 8px;
  padding: 1px 7px;
  margin-left: 6px;
  text-shadow: none;
}

/* v2.8.0: стеклянная панель — базовый строительный блок нового UI */
.dcc-glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* v2.8.0: индекс-хаб — контейнер с частицами и профилем (absolute) */
.dcc-index { position: relative; overflow: hidden; }

.dcc-table {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 14px;
  position: relative;
  color: #eef0ff;
  /* v2.8.0: стеклянная панель вместо зелёного сукна с деревянной рамой */
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, .08), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .45);
}
.dcc-table > * { position: relative; }

.dcc-info { text-align: center; font-size: 14px; font-weight: 600; color: #d6dcf7; margin: 4px 0; }
.dcc-lbl { font-size: 12px; color: #c9cff0; margin-top: 6px; }
.dcc-muted { color: var(--dcc-mu); }

.dcc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 0; }
/* Разделитель рядов с пилюлей «Раунд N» (v2.3.0, порт с сайта):
   линии по бокам через ::before/::after, пилюля — полупрозрачная тёмная,
   читается на любом фоне Foundry (светлом и тёмном). */
.dcc-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.dcc-mid::before,
.dcc-mid::after {
  content: '';
  flex: 1 1 auto;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, .5));
}
.dcc-mid::after { background: linear-gradient(90deg, rgba(255, 240, 200, .5), transparent); }
.dcc-round {
  flex: 0 0 auto;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(110, 231, 183, .35);
  color: #b9e6c9;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}

/* ── таймер хода (PvP-дуэли, v2.5.0): кольцо + секунды, локальный тик ────── */
.dcc-timer {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 5px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .13);
  border: 1px solid rgba(52, 211, 153, .45);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  cursor: help;
  transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.dcc-timer-ring { width: 20px; height: 20px; display: block; }
.dcc-timer-bg { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 3; }
.dcc-timer-arc {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset .25s linear;
}
.dcc-timer-secs { min-width: 2ch; text-align: right; }
/* чей ход — тёплое свечение, чтобы видеть «это твоё время» */
.dcc-timer-mine {
  box-shadow: 0 0 10px rgba(52, 211, 153, .35), inset 0 0 6px rgba(52, 211, 153, .12);
}
/* < 20 секунд: янтарь */
.dcc-timer-warn {
  background: rgba(245, 158, 11, .13);
  border-color: rgba(251, 191, 36, .55);
  color: #fcd34d;
}
/* < 10 секунд: красный + пульс */
.dcc-timer-urgent {
  background: rgba(239, 68, 68, .16);
  border-color: rgba(248, 113, 113, .65);
  color: #fca5a5;
  animation: dcc-timer-pulse .9s ease-in-out infinite;
}
.dcc-timer-urgent .dcc-timer-secs { color: #fecaca; }
.dcc-timer-mine.dcc-timer-warn {
  box-shadow: 0 0 10px rgba(251, 191, 36, .35), inset 0 0 6px rgba(251, 191, 36, .1);
}
.dcc-timer-mine.dcc-timer-urgent {
  box-shadow: 0 0 14px rgba(248, 113, 113, .5), inset 0 0 8px rgba(248, 113, 113, .15);
}
@keyframes dcc-timer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .dcc-timer-urgent { animation: none; }
  .dcc-timer-arc { transition: none; }
}

.dcc-tbody { display: grid; grid-template-columns: 1fr; gap: 12px; }
/* v2.8.0: боковая панель уходит вниз до 1024px — доска с карточками
   занимает всю ширину, «ничего не сжато»; на широких окнах — справа */
@media (min-width: 1024px) { .dcc-tbody { grid-template-columns: minmax(0, 1fr) 300px; } }
/* v2.8.0: боковая панель и доска — стеклянные, «воздушные» */
.dcc-side {
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .09);
}
.dcc-board { border-radius: 16px; padding: 10px; }
.dcc-side .dcc-acts { flex-direction: column; align-items: stretch; }
.dcc-side .dcc-acts button { text-align: left; }

/* ------------------------------- кубики ---------------------------------- */

.dcc-dice { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.dcc-d {
  background: var(--dcc-card);
  border: 1px solid var(--dcc-bd);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--dcc-tx);
}
.dcc-d.dcc-u { border-color: var(--dcc-ac); color: var(--dcc-ac); }
.dcc-d.dcc-z { opacity: .35; }

.dcc-dice button, .dcc-dice .dcc-sel {
  font: inherit;
  font-size: 13px;
  background: var(--dcc-card);
  color: var(--dcc-tx);
  border: 1px solid var(--dcc-bd);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.dcc-dice .dcc-sel { background: var(--dcc-ac); color: #fff; border-color: var(--dcc-ac); }

/* ------------------------------- кнопки ---------------------------------- */

.dcc-root button {
  font: inherit;
  font-size: 13px;
  background: var(--dcc-card);
  color: var(--dcc-tx);
  border: 1px solid var(--dcc-bd);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.dcc-root button:hover:not(:disabled) { border-color: var(--dcc-ac); }
.dcc-root button:disabled { opacity: .4; cursor: default; }
.dcc-root button.dcc-pass { background: var(--dcc-ac); color: #fff; border-color: var(--dcc-ac); }

/* Карточки-кнопки: обнуляем базовые стили кнопок (карточка — не кнопка
   визуально, но семантически кликабельна и доступна с клавиатуры) */
.dcc-root button.dcc-hc {
  padding: 0;
  font-size: inherit;
  color: #fff;
  background: #14111f;
  border: 2px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}
.dcc-root button.dcc-hc:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
}

.dcc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.dcc-acts button.dcc-sel { background: var(--dcc-ac); color: #fff; border-color: var(--dcc-ac); }

/* ------------------------------- карточки --------------------------------- */

/* v2.6.0 — ГАРАНТИРОВАННОЕ заполнение колонки сетки.
   В ряде браузеров <button> не растягивается grid-элементом (FireFox-причуда
   размеров форм) и без явной ширины сжимается до ~ширины буквы-фолбэка
   («спичечные» карточки). Явные width/justify-self чинят это везде. */
.dcc-mgrid > .dcc-hc,
.dcc-row > .dcc-hc {
  width: 100%;
  justify-self: stretch;
  align-self: start;
  display: block;
}
/* Резервная высота для движков без aspect-ratio: карточка останется карточкой,
   а не полоской в 40px */
@supports not (aspect-ratio: 2 / 3) {
  .dcc-hc { min-height: 170px; }
}
.dcc-hc {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .15);
  background: #14111f;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .55);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  cursor: default;
  min-width: 0;
  min-height: 150px; /* страховка поверх aspect-ratio */
}
.dcc-hc:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0, 0, 0, .6), 0 0 0 1px rgba(196, 181, 253, .25); border-color: rgba(196, 181, 253, .4); }
.dcc-hc .dcc-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 15%;
  background-repeat: no-repeat;
}
/* v2.6.0 — настоящий <img> внутри арт-бокса: тот же кадр, но ошибки загрузки
   видны (событие error ловит #watchPortraitErrors в app.mjs). */
.dcc-art .dcc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  user-select: none;
  pointer-events: none;
}
/* Буква-фолбэк внутри арт-бокса — спрятана, пока картинка жива; включается
   классом .dcc-noimg (его вешает наблюдатель ошибок или CSS при отсутствии img) */
.dcc-art .dcc-ph2 {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(160deg, #5a4a6a, #2a2236);
  color: #cfc4e0;
}
.dcc-hc.dcc-noimg .dcc-img { display: none; }
.dcc-hc.dcc-noimg .dcc-ph2 { display: flex; }

/* Портреты героев — фоновые классы оставлены как второй слой (если <img>
   почему-то не сработал, но CSS-путь валиден — картинка всё равно покажется) */
.dcc-art.a-helm { background-image: url("../images/portraits/helm.jpg"); }
.dcc-art.a-himel { background-image: url("../images/portraits/himel.jpg"); }
.dcc-art.a-akuma { background-image: url("../images/portraits/akuma.jpg"); }
.dcc-art.a-fia1 { background-image: url("../images/portraits/fia1.jpg"); }
.dcc-art.a-fia2 { background-image: url("../images/portraits/fia2.jpg"); }
.dcc-art.a-damarcus { background-image: url("../images/portraits/damarcus.jpg"); }
.dcc-art.a-haine { background-image: url("../images/portraits/haine.jpg"); }
.dcc-art.a-albert { background-image: url("../images/portraits/albert.jpg"); }
.dcc-art.a-viole { background-image: url("../images/portraits/viole.jpg"); }
.dcc-art.a-grom { background-image: url("../images/portraits/grom.jpg"); }
.dcc-art.a-elanna { background-image: url("../images/portraits/elanna.jpg"); }
.dcc-art.a-kane { background-image: url("../images/portraits/kane.jpg"); }
.dcc-art.a-shadow { background-image: url("../images/portraits/shadow.jpg"); }
.dcc-art.a-morban { background-image: url("../images/portraits/morban.jpg"); }
.dcc-art.a-eldrin { background-image: url("../images/portraits/eldrin.jpg"); }
.dcc-art.a-ronan { background-image: url("../images/portraits/ronan.jpg"); }
.dcc-art.a-mira { background-image: url("../images/portraits/mira.jpg"); }
/* Буква-заглушка для героев БЕЗ портрета (прямой ребёнок карточки).
   Внутри .dcc-art буква управляется правилами v2.6.0 выше. */
.dcc-hc > .dcc-ph2 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(160deg, #5a4a6a, #2a2236);
  color: #cfc4e0;
}
.dcc-hc.dcc-act {
  border-color: #ffd25e;
  box-shadow: 0 0 0 2px #ffd25e, 0 0 18px 4px rgba(255, 210, 94, .6);
  transform: translateY(-6px);
}
.dcc-hc.dcc-dead { filter: grayscale(1) brightness(.45); }
.dcc-hc.dcc-pick { cursor: pointer; outline: 2px dashed #fff; outline-offset: -5px; }

/* Готовая ульта — пульсирующее небесно-голубое свечение (v2.3.0) */
@keyframes dcc-ultready {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0); }
  50% { box-shadow: 0 0 16px 3px rgba(125, 211, 252, .4); }
}
.dcc-hc.dcc-ultready { animation: dcc-ultready 1.8s ease-in-out infinite; }
.dcc-hc.dcc-act.dcc-ultready {
  animation: none;
  border-color: #ffd25e;
  box-shadow: 0 0 0 2px #ffd25e, 0 0 18px 4px rgba(255, 210, 94, .6), 0 0 22px 5px rgba(125, 211, 252, .35);
}
@media (prefers-reduced-motion: reduce) {
  .dcc-hc.dcc-ultready { animation: none; }
}

/* Тонкие янтарные скроллбары для журнала и руки (v2.3.0) */
.dcc-root .dcc-scroll,
.dcc-log.dcc-scroll,
.dcc-hand.dcc-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, .35) rgba(0, 0, 0, .25);
}
.dcc-root .dcc-scroll::-webkit-scrollbar,
.dcc-log.dcc-scroll::-webkit-scrollbar,
.dcc-hand.dcc-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.dcc-root .dcc-scroll::-webkit-scrollbar-track,
.dcc-log.dcc-scroll::-webkit-scrollbar-track,
.dcc-hand.dcc-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, .25); border-radius: 8px; }
.dcc-root .dcc-scroll::-webkit-scrollbar-thumb,
.dcc-log.dcc-scroll::-webkit-scrollbar-thumb,
.dcc-hand.dcc-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(245, 158, 11, .35), rgba(180, 100, 20, .35));
  border-radius: 8px;
}
.dcc-root .dcc-scroll::-webkit-scrollbar-thumb:hover,
.dcc-log.dcc-scroll::-webkit-scrollbar-thumb:hover,
.dcc-hand.dcc-scroll::-webkit-scrollbar-thumb:hover { background: rgba(245, 158, 11, .55); }
.dcc-hc .dcc-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding: 4px;
  background: linear-gradient(rgba(0, 0, 0, .7), transparent);
}
.dcc-cls {
  font-size: clamp(9px, 1.1vw, 11px);
  background: rgba(0, 0, 0, .6);
  border-radius: 6px;
  padding: 2px 5px;
  white-space: nowrap;
}
.dcc-sts { position: absolute; left: 4px; top: 28px; display: flex; flex-direction: column; gap: 3px; z-index: 2; }
.dcc-st {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  border: 1px solid #ffe9b0;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  user-select: none;
}
.dcc-st:hover, .dcc-st:focus-within { background: #8b5cf6; }

/* Подсказка статуса — чистый CSS, без JS */
.dcc-tipbox {
  display: none;
  position: absolute;
  left: 26px;
  top: -4px;
  width: 230px;
  padding: 8px 10px;
  background: #211b33;
  color: #eef0ff;
  border: 1px solid rgba(196, 181, 253, .35);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-line;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .6);
  z-index: 50;
  pointer-events: none;
}
.dcc-tipbox b { display: block; margin-bottom: 3px; color: #c4b5fd; }
.dcc-st:hover .dcc-tipbox, .dcc-st:focus-within .dcc-tipbox { display: block; }
.dcc-hc .dcc-bot {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 6px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
}
.dcc-nm {
  font-weight: bold;
  font-size: clamp(11px, 1.5vw, 15px);
  text-shadow: 0 1px 2px #000;
  line-height: 1.15;
}
.dcc-hbar { height: 7px; background: rgba(255, 255, 255, .25); border-radius: 4px; overflow: hidden; margin: 4px 0 2px; }
.dcc-hbar i { display: block; height: 100%; background: #59d17b; }
.dcc-cbar { height: 4px; background: rgba(255, 255, 255, .2); border-radius: 3px; overflow: hidden; margin-top: 3px; }
.dcc-cbar i { display: block; height: 100%; background: #ffd25e; }
.dcc-hpn { font-size: clamp(10px, 1.2vw, 12px); }

@media (max-width: 600px) {
  .dcc-cls { font-size: 8px; padding: 1px 3px; }
  .dcc-hc .dcc-top { padding: 3px 2px; gap: 1px; }
  .dcc-sts { top: 20px; left: 3px; }
  .dcc-st { width: 19px; height: 19px; font-size: 10px; }
  .dcc-hc { border-width: 2px; border-radius: 9px; min-height: 110px; }
  .dcc-row { gap: 6px; }
}

/* ------------------------------- прочее ----------------------------------- */

.dcc-box {
  background: var(--dcc-card);
  border: 1px solid var(--dcc-bd);
  border-radius: 8px;
  padding: 8px;
  font-size: 13px;
  margin: 8px 0;
  line-height: 1.5;
  color: var(--dcc-tx);
}
.dcc-box div { margin: 2px 0; }

.dcc-log {
  background: rgba(0, 0, 0, .30);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 8px;
  height: 110px;
  overflow-y: auto;
  font-size: 12px;
  color: #eaf2d8;
}
.dcc-log::-webkit-scrollbar { width: 8px; }
.dcc-log::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 4px; }

.dcc-toast {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: var(--dcc-ac);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  max-width: 90%;
  text-align: center;
  z-index: 99999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}

.dcc-win {
  position: fixed;
  inset: 0;
  overflow: hidden;   /* v2.3.0: клип конфетти победы */
  background: rgba(0, 0, 0, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #fff;
  font-size: 24px;
  z-index: 99998;
  text-align: center;
}
.dcc-win button { min-width: 140px; }
.dcc-win .dcc-lbl { color: #ccc; }

/* --------------------------- экран выбора отряда -------------------------- */

.dcc-mgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin: 8px 0;
}

/* ----------------------------- экран режимов ------------------------------- */

.dcc-modebtn {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  color: var(--dcc-tx);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
}
.dcc-modebtn .dcc-micon { font-size: 22px; color: #c4b5fd; }
.dcc-modebtn .dcc-mtitle { font-weight: bold; font-size: 16px; color: #fff; }
.dcc-modebtn .dcc-mdesc { font-size: 12px; color: var(--dcc-mu); line-height: 1.4; }
.dcc-modebtn:hover:not(:disabled) {
  border-color: rgba(196, 181, 253, .5);
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, .45), 0 0 0 1px rgba(196, 181, 253, .25);
  transform: translateY(-2px);
}
.dcc-modegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 12px 0;
  max-width: 900px;
}
.dcc-pvpbox { border: 1px solid rgba(45, 212, 191, .35); }
.dcc-off { opacity: .75; }
.dcc-pvprow { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.dcc-select {
  flex: 1;
  min-width: 160px;
  font: inherit;
  font-size: 13px;
  padding: 8px;
  background: #171226;
  color: #eef0ff;
  border: 1px solid var(--dcc-bd);
  border-radius: 10px;
}
.dcc-select option { background: #171226; color: #eef0ff; }
.dcc-duelrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 4px 0;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  color: #d6dcf7;
  font-size: 13px;
}
.dcc-duelbtns { display: flex; gap: 6px; flex-shrink: 0; }

/* --------------------------- кнопка в списке игроков ----------------------- */

.dnd-cards-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: rgba(139, 92, 246, .85);
  color: #f4f2ff;
  border: 1px solid rgba(196, 181, 253, .6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.dnd-cards-launch:hover { background: #8b5cf6; border-color: #c4b5fd; }
.dnd-cards-launch i { font-size: 16px; }

/* ------------------------------- сообщение чата ---------------------------- */

.dnd-cards-chat {
  border: 1px solid rgba(139, 92, 246, .4);
  border-left: 4px solid #8b5cf6;
  border-radius: 10px;
  padding: 6px 10px;
  background: rgba(139, 92, 246, .08);
  font-family: inherit;
}
.dnd-cards-chat h3 { margin: 0 0 4px; font-size: 15px; color: #c4b5fd; }
.dnd-cards-chat p { margin: 2px 0; }
.dnd-cards-chat .muted { color: #a7a3c4; font-size: 12px; }

/* ---------------------------- справка (правила) ---------------------------- */
/* Оверлей справки — чистый CSS через скрытый чекбокс (без JS-состояния). */
.dcc-helpcheck {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.dcc-helpcheck:focus-visible + .dcc-helpbtn {
  outline: 2px solid #ffd97a;
  outline-offset: 2px;
}
.dcc-helpcheck:checked ~ .dcc-help { display: flex; }
.dcc-helpbtn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 60;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, .4);
  background: rgba(20, 16, 30, .85);
  color: #d6dcf7;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}
.dcc-helpbtn:hover { border-color: rgba(196, 181, 253, .8); color: #eef0ff; }

.dcc-help {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .72);
  z-index: 99999;
}
.dcc-helpbox {
  width: min(720px, calc(100% - 32px));
  max-height: min(82vh, 780px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(196, 181, 253, .3);
  border-radius: 18px;
  background: linear-gradient(180deg, #201b30, #14101f);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .75), 0 0 60px rgba(139, 92, 246, .12);
  overflow: hidden;
}
.dcc-helphdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #c4b5fd;
  font-size: 20px;
  background: rgba(139, 92, 246, .08);
}
.dcc-helpx {
  border: 1px solid rgba(196, 181, 253, .35);
  border-radius: 8px;
  background: transparent;
  color: #d6dcf7;
  font-size: 15px;
  padding: 4px 10px;
  cursor: pointer;
}
.dcc-helpx:hover { color: #ffd97a; border-color: #d4a94e; }
.dcc-helpbody {
  padding: 14px 18px 18px;
  overflow-y: auto;
  color: #d6dcf7;
  font-size: 14px;
  line-height: 1.5;
}
.dcc-helpbody ul { margin: 6px 0 12px; padding-left: 20px; }
.dcc-helpbody li { margin-bottom: 4px; }
.dcc-helpgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 6px 14px;
  margin: 6px 0 12px;
}
.dcc-helpgrid > div {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(0, 0, 0, .25);
}

/* ============================================================
   Плавающая кнопка запуска (v1.0.6) — резервный вход №1.
   Живёт прямо в body, position:fixed, перетаскивается мышью,
   позиция сохраняется. Не зависит от хуков рендера и панелей.
   ============================================================ */
#dcc-launch {
  position: fixed;
  left: 14px;
  bottom: 96px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(196, 181, 253, .5);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, #3d2f66, #191327);
  color: #c4b5fd;
  font-size: 20px;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(196, 181, 253, .18);
  opacity: .82;
  transition: opacity .15s ease, box-shadow .15s ease, transform .15s ease;
  touch-action: none;
  user-select: none;
}
#dcc-launch:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .7), 0 0 18px rgba(139, 92, 246, .5), inset 0 0 0 1px rgba(196, 181, 253, .35);
}
#dcc-launch:active { transform: translateY(0) scale(.96); }
#dcc-launch:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 2px;
  opacity: 1;
}
/* подсказка при первом наведении: кнопку можно тащить */
#dcc-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
}
/* .dnd-cards-launch — кнопка в списке игроков (V12-путь), тот же стиль */
.dnd-cards-launch {
  width: 40px;
  height: 40px;
  margin: 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 181, 253, .5);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, #3d2f66, #191327);
  color: #c4b5fd;
  cursor: pointer;
}
.dnd-cards-launch:hover { color: #eef0ff; border-color: rgba(196, 181, 253, .9); }

/* Сообщение о завершении дуэли в чате */
.dnd-cards-chat h3 { color: #c4b5fd; margin: 0 0 4px; font-family: Georgia, serif; }
.dnd-cards-chat p { margin: 2px 0; }
.dnd-cards-chat .muted { color: #a7a3c4; font-size: 12px; }

/* ============================================================
   «Бой-джус» (v2.3.0) — порт живых анимаций с сайта-лендинга
   (src/app/globals.css + game-arena.tsx) в окно модуля:
   • dcc-pop — пилюля «Раунд N» и оверлей победы;
   • dcc-hit/dcc-heal/dcc-shield — вспышка карточки при изменении
     HP/щита (транзитные классы, вешает #fxAfterRender в app.mjs);
   • dcc-float — всплывающие числа «−N / +N / +N 🛡 / 💀»;
   • dcc-dice-in — каскадный влёт кубиков в начале раунда;
   • dcc-activepulse — «дыхание» рамки активного героя;
   • dcc-confetti — 16 частиц в оверлее победы.
   Классы в шаблонах ГЕЙТятся (roundAnim), чтобы innerHTML-перерисовка
   на каждом действии не проигрывала анимации заново.
   ============================================================ */

@keyframes dcc-pop {
  0% { opacity: 0; transform: scale(0.82); }
  60% { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.dcc-pop { animation: dcc-pop 0.4s ease both; }

/* Удар — дрожание и вспышка яркости. Тряска через независимое свойство
   translate, чтобы не конфликтовать с transform: translateY(-6px)
   активной карточки. */
@keyframes dcc-hit {
  0% { filter: brightness(1); translate: 0 0; }
  12% { filter: brightness(2) saturate(1.7); }
  20% { translate: -4px 0; }
  35% { translate: 4px 0; }
  50% { translate: -2px 0; }
  65% { translate: 2px 0; }
  100% { filter: brightness(1); translate: 0 0; }
}
@keyframes dcc-heal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  45% { box-shadow: 0 0 20px 5px rgba(16, 185, 129, .45); }
}
@keyframes dcc-shieldfx {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
  45% { box-shadow: 0 0 20px 5px rgba(34, 211, 238, .5); }
}
/* Транзитные классы карточки: селекторы через .dcc-root дают специфичность
   выше, чем .dcc-hc.dcc-act / .dcc-hc.dcc-ultready (в т.ч. их комбинация),
   поэтому вспышка всегда перекрывает пульсы — и снимается через 950 мс. */
.dcc-root .dcc-hc.dcc-hit { animation: dcc-hit 0.55s ease both; z-index: 6; }
.dcc-root .dcc-hc.dcc-heal { animation: dcc-heal 0.7s ease both; }
.dcc-root .dcc-hc.dcc-shieldfx { animation: dcc-shieldfx 0.7s ease both; }

/* Всплывающие числа над карточкой: тёмная пилюля + цветная рамка/текст */
@keyframes dcc-float {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.6); }
  18% { opacity: 1; transform: translate(-50%, -8px) scale(1.2); }
  70% { opacity: 1; transform: translate(-50%, -26px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -38px) scale(0.9); }
}
.dcc-float {
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: 20;
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(0, 0, 0, .65);
  border: 1px solid rgba(255, 255, 255, .25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 8px rgba(0, 0, 0, .8);
  animation: dcc-float 0.95s ease-out both;
}
.dcc-fl-hit { color: #f87171; border-color: rgba(248, 113, 113, .55); }
.dcc-fl-heal { color: #6ee7b7; border-color: rgba(110, 231, 183, .55); }
.dcc-fl-shield { color: #67e8f9; border-color: rgba(103, 232, 249, .55); }

/* Кубики влетают в бой лёгким «кубком», каскад 70 мс (delay в шаблоне) */
@keyframes dcc-dice-in {
  0% { opacity: 0; transform: translateY(-10px) rotate(-14deg) scale(0.5); }
  70% { transform: translateY(2px) rotate(3deg) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
.dcc-root .dcc-d.dcc-dice-in { animation: dcc-dice-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* Активный герой — тёплое дыхание рамки (янтарное кольцо остаётся).
   Специфичность 0-2-0 — ниже, чем .dcc-hc.dcc-act.dcc-ultready, поэтому
   существующее v2.3.0-поведение (сочетание свечений без анимации) сохраняется. */
@keyframes dcc-activepulse {
  0%, 100% { box-shadow: 0 0 0 2px #ffd25e, 0 0 12px 3px rgba(255, 210, 94, .45); }
  50% { box-shadow: 0 0 0 2px #ffd25e, 0 0 24px 7px rgba(255, 210, 94, .85); }
}
.dcc-hc.dcc-act { animation: dcc-activepulse 2.2s ease-in-out infinite; }

/* Конфетти победы — 16 частиц, цвета c0/c1/c2 (янтарь/изумруд/красный) */
@keyframes dcc-confetti {
  0% { transform: translateY(-12px) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(230px) rotate(560deg); opacity: 0; }
}
.dcc-confetti {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  pointer-events: none;
  animation: dcc-confetti 1.9s linear infinite;
}
.dcc-confetti.c0 { background: #fbbf24; }
.dcc-confetti.c1 { background: #34d399; }
.dcc-confetti.c2 { background: #f87171; }

/* Доступность: при prefers-reduced-motion все FX-анимации выключены,
   всплывающие числа и конфетти скрыты (селекторы той же специфичности,
   но ниже по файлу — перекрывают базовые правила). */
@media (prefers-reduced-motion: reduce) {
  .dcc-root .dcc-pop,
  .dcc-root .dcc-d.dcc-dice-in,
  .dcc-root .dcc-hc.dcc-act,
  .dcc-root .dcc-hc.dcc-hit,
  .dcc-root .dcc-hc.dcc-heal,
  .dcc-root .dcc-hc.dcc-shieldfx,
  .dcc-root .dcc-float,
  .dcc-root .dcc-confetti { animation: none; }
  .dcc-root .dcc-float,
  .dcc-root .dcc-confetti { display: none; }
}

/* ============================================================
   v2.7.0 — «Призыв героев» и монеты (порт с арены сайта)
   • .dcc-coins — золотой жетон (пульс .dcc-coinpulse при пополнении);
   • .dcc-summonbtn/.dcc-summonlink — кнопки входа на экран призыва;
   • .dcc-cardback + @keyframes dcc-summon-roll — рубашка и бросок;
   • .dcc-summon-rays — вращающиеся лучи (цвет --dcc-ray по редкости);
   • @keyframes dcc-summon-reveal — «пуф» раскрытия героя;
   • .dcc-legshimmer — золотое мерцание рамки легендарных карт;
   • .dcc-rar-common/rare/epic/legendary — цвет редкости (гемы/чипы/рамки);
   • .dcc-locked — непризванные герои: grayscale + затемнение + 🔒;
   • .dcc-coinwin — «+N монет» в оверлее победы;
   • .dcc-coinpulse — золотое кольцо вокруг жетона монет.
   ============================================================ */

/* ── жетон монет ─────────────────────────────────────────────── */
.dcc-coins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, .55);
  background: linear-gradient(180deg, rgba(251, 191, 36, .22), rgba(120, 53, 15, .28));
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: help;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
@keyframes dcc-coinpulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); transform: scale(1); }
  35% { box-shadow: 0 0 18px 4px rgba(251, 191, 36, .55); transform: scale(1.12); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); transform: scale(1); }
}
.dcc-coins.dcc-coinpulse { animation: dcc-coinpulse 0.9s ease-out both; }

/* ── шапки экранов: заголовок + жетон + кнопки ──────────────── */
.dcc-mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.dcc-mhead h1 { margin: 0; }
.dcc-summonhdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.dcc-summonhdr h1 { margin: 0; text-align: left; }
.dcc-summonctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── вход на экран призыва: широкая золотая кнопка (меню) ─────── */
.dcc-root .dcc-summonbtn {
  background: linear-gradient(160deg, #2b1d09, #1a1208);
  color: #fde68a;
  border: 2px solid rgba(251, 191, 36, .6);
  box-shadow: 0 0 18px rgba(245, 158, 11, .15), inset 0 0 30px rgba(245, 158, 11, .07);
  margin: 12px 0 4px;
  width: 100%;
}
.dcc-root .dcc-summonbtn:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, .95);
  box-shadow: 0 0 26px rgba(245, 158, 11, .38);
}
.dcc-root .dcc-summonbtn .dcc-micon { color: #fbbf24; }
.dcc-root .dcc-summonbtn .dcc-mtitle { color: #ffd97a; }
.dcc-root .dcc-summonbtn .dcc-mdesc { color: #e3cf9e; }
.dcc-summonmeta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.dcc-coll { color: #d9c9a8; font-size: 12px; font-weight: 700; }
.dcc-coll b { color: #ffd97a; }

/* ── компактный ярлык призыва в шапке выбора отряда ──────────── */
.dcc-root .dcc-summonlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, .5);
  background: rgba(251, 191, 36, .12);
  color: #ffd97a;
  font-weight: 700;
}
.dcc-root .dcc-summonlink:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, .9);
  background: rgba(251, 191, 36, .22);
}

/* ── цвета редкостей: гемы, чипы шансов, текст, рамки карт ──── */
.dcc-rar-common    { color: #a1a1aa; }
.dcc-rar-rare      { color: #34d399; }
.dcc-rar-epic      { color: #c084fc; }
.dcc-rar-legendary { color: #fbbf24; }
/* гемы в углу карточки/мини-карты */
.dcc-gem {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 5;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, .62);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}
.dcc-gem.dcc-rar-legendary { animation: dcc-legshimmer 2.2s ease-in-out infinite; }
/* рамка раскрытой карты призыва — цвет редкости (текст остаётся белым) */
.dcc-hc.dcc-rar-common, .dcc-hc.dcc-rar-rare,
.dcc-hc.dcc-rar-epic, .dcc-hc.dcc-rar-legendary { color: #fff; }
.dcc-hc.dcc-rar-common    { border-color: rgba(161, 161, 170, .85); }
.dcc-hc.dcc-rar-rare      { border-color: rgba(52, 211, 153, .85); }
.dcc-hc.dcc-rar-epic      { border-color: rgba(192, 132, 252, .9); }
.dcc-hc.dcc-rar-legendary { border-color: rgba(251, 191, 36, .95); }

/* ── замки: непризванные герои (грид выбора + мини-карты) ────── */
.dcc-root .dcc-hc.dcc-locked,
.dcc-root .dcc-mini.dcc-locked {
  filter: grayscale(.85) brightness(.5);
}
.dcc-root .dcc-hc.dcc-locked.dcc-pick {
  outline: none;
  cursor: not-allowed;
}
.dcc-lockov {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .9);
  background: rgba(10, 8, 5, .38);
  pointer-events: none;
}
/* номер выбранного героя — янтарная плашка (как на сайте) */
.dcc-ordnum {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 8;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #f59e0b;
  color: #1c1917;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  pointer-events: none;
}

/* ── сцена призыва ──────────────────────────────────────────── */
.dcc-summonstage {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(196, 181, 253, .22);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, .12), transparent 65%),
    rgba(0, 0, 0, .42);
  padding: 24px 14px 18px;
  margin: 12px 0;
}
.dcc-summoncenter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}

/* рубашка карты призыва — тёмная с каймой и орнаментом */
.dcc-cardback {
  position: relative;
  width: 176px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 3px solid rgba(212, 166, 90, .75);
  background:
    radial-gradient(circle at 50% 32%, rgba(245, 158, 11, .16), transparent 62%),
    repeating-linear-gradient(45deg, rgba(138, 106, 58, .12) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #241708, #14100a 58%, #1d1309);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .55), 0 8px 22px rgba(0, 0, 0, .5);
  user-select: none;
}
@keyframes dcc-summon-roll {
  0% { transform: rotate(0deg) scale(1); box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
  18% { transform: rotate(-5deg) scale(1.03); }
  36% { transform: rotate(4deg) scale(1.05); }
  54% { transform: rotate(-3deg) scale(1.06); }
  72% { transform: rotate(2deg) scale(1.07); }
  90% { transform: rotate(-1deg) scale(1.08); }
  100% { transform: rotate(0deg) scale(1.09); box-shadow: 0 0 34px 6px rgba(245, 158, 11, .5); }
}
.dcc-cardback.dcc-summon-roll { animation: dcc-summon-roll 0.95s ease-in-out both; }
.dcc-cb-emblem {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: rgba(245, 158, 11, .8);
  text-shadow: 0 0 12px rgba(245, 158, 11, .5);
}
.dcc-cb-orn { position: absolute; font-size: 13px; color: rgba(180, 130, 60, .85); }
.dcc-cb-orn.tl { top: 8px; left: 8px; }
.dcc-cb-orn.tr { top: 8px; right: 8px; }
.dcc-cb-orn.bl { bottom: 8px; left: 8px; }
.dcc-cb-orn.br { bottom: 8px; right: 8px; }
.dcc-cb-rule { position: absolute; left: 24px; right: 24px; height: 1px; background: rgba(180, 130, 60, .4); }
.dcc-cb-rule.r1 { top: calc(50% - 32px); }
.dcc-cb-rule.r2 { top: calc(50% + 32px); }

/* лучи за выпавшей картой: вращающийся конический градиент цвета редкости */
.dcc-summon-rays {
  --dcc-ray: rgba(251, 191, 36, .55);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 14deg, var(--dcc-ray) 20deg 26deg, transparent 32deg 60deg, var(--dcc-ray) 66deg 72deg, transparent 78deg 110deg, var(--dcc-ray) 116deg 122deg, transparent 128deg 168deg, var(--dcc-ray) 174deg 180deg, transparent 186deg 230deg, var(--dcc-ray) 236deg 242deg, transparent 248deg 300deg, var(--dcc-ray) 306deg 312deg, transparent 318deg 360deg);
  filter: blur(1.5px);
  opacity: .55;
  animation: dcc-rays-spin 14s linear infinite;
  pointer-events: none;
}
@keyframes dcc-rays-spin { to { transform: rotate(360deg); } }

/* раскрытие героя: «пуф» с лёгким перелётом */
@keyframes dcc-summon-reveal {
  0% { opacity: 0; transform: scale(0.6) rotateY(28deg); filter: brightness(2.2); }
  60% { opacity: 1; transform: scale(1.06) rotateY(0deg); filter: brightness(1.25); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}
.dcc-summon-reveal { animation: dcc-summon-reveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.dcc-summon-hero { width: 190px; }

/* золотое мерцание рамки легендарных карт */
@keyframes dcc-legshimmer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0), 0 5px 12px rgba(0, 0, 0, .5); }
  50% { box-shadow: 0 0 22px 3px rgba(251, 191, 36, .55), 0 5px 12px rgba(0, 0, 0, .5); }
}
.dcc-hc.dcc-legshimmer { animation: dcc-legshimmer 2.2s ease-in-out infinite; }

/* подпись результата призыва */
.dcc-summonresult { text-align: center; max-width: 340px; }
.dcc-rarline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dcc-rartext { font-size: 16px; font-weight: 800; }
.dcc-rarname { font-size: 18px; font-weight: 800; color: #ffe9b0; margin-top: 2px; }
.dcc-rarquote { font-size: 12px; font-style: italic; margin-top: 2px; }
.dcc-newbadge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .6);
  background: rgba(16, 185, 129, .15);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
}

/* кнопка призыва — золотая */
.dcc-root .dcc-goldbtn {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  color: #201505;
  border: 1px solid #fde68a;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
}
.dcc-root .dcc-goldbtn:hover:not(:disabled) { filter: brightness(1.08); }
.dcc-needmore { text-align: center; }

/* баннер полной коллекции */
.dcc-completebanner {
  text-align: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, .6);
  background: rgba(251, 191, 36, .1);
}
.dcc-completebig { font-size: 30px; }
.dcc-completetitle { font-size: 16px; font-weight: 800; color: #ffd97a; margin-top: 2px; }

/* шансы редкостей */
.dcc-chances {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.dcc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, .45);
}

/* коллекция: 16 мини-карт */
.dcc-collbox {
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .3);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 12px 0;
}
.dcc-collhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
}
.dcc-colltitle {
  color: #ffd97a;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.dcc-colltitle b { font-variant-numeric: tabular-nums; }
.dcc-collgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.dcc-mini {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #14111f;
  min-height: 84px;
}
.dcc-mini .dcc-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 15%;
}
.dcc-mini .dcc-ph2 {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(160deg, #5a4a6a, #2a2236);
  color: #cfc4e0;
}
.dcc-mini.dcc-noimg .dcc-img { display: none; }
.dcc-mini.dcc-noimg .dcc-ph2 { display: flex; }
.dcc-mininm {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 3px 3px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dcc-mini .dcc-gem {
  width: 17px;
  height: 17px;
  font-size: 9px;
  opacity: .95;
}

/* как зарабатывать монеты */
.dcc-earnbox {
  display: grid;
  gap: 6px 18px;
  grid-template-columns: 1fr;
  border: 1px solid rgba(212, 166, 90, .3);
  background: rgba(0, 0, 0, .3);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #e5d9bd;
}
@media (min-width: 640px) { .dcc-earnbox { grid-template-columns: 1fr 1fr; } }
.dcc-em { color: #34d399; font-weight: 700; }
.dcc-gold { color: #fbbf24; font-weight: 700; }
.dcc-hard { color: #f87171; font-weight: 700; }

/* строка «+N монет» в оверлее победы */
.dcc-coinwin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, .55);
  background: rgba(251, 191, 36, .14);
  color: #fcd34d;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* доступность: глушим все новые анимации при prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .dcc-coins.dcc-coinpulse,
  .dcc-cardback.dcc-summon-roll,
  .dcc-summon-rays,
  .dcc-summon-reveal,
  .dcc-hc.dcc-legshimmer,
  .dcc-gem.dcc-rar-legendary,
  .dcc-coinwin.dcc-coinpulse { animation: none; }
  .dcc-summon-rays { opacity: .3; }
}

/* ============================================================
   v2.8.0 — ПЕРЕСБОРКА UI: индекс-хаб, профиль, бесплатные призывы
   (порт стилей арены сайта v2.8.0: globals.css .dcc-arena2/.dcc-glass/
   .dcc-title-glow/.dcc-mote/.dcc-hero-btn → окно модуля)
   • шапка-бренд + чипы (монеты + бесплатные);
   • сияющий градиентный заголовок индекса;
   • парящие золотые частицы (8 шт., позиции задаёт шаблон);
   • градиентные рамки-свечения главных кнопок (dcc-hero-btn);
   • кнопка «Профиль» СЛЕВА ВНИЗУ индекса + экран профиля;
   • зелёная кнопка бесплатного призыва (dcc-freebtn);
   • цветовые утилиты текста (dcc-ok-t/bad-t/gold-t/free-t).
   ============================================================ */

/* ── цветовые утилиты ───────────────────────────────────────── */
.dcc-ok-t   { color: #34d399; }
.dcc-bad-t  { color: #f87171; }
.dcc-gold-t { color: #fbbf24; }
.dcc-free-t { color: #6ee7b7; }
.dcc-center { text-align: center; }

/* ── шапка-бренд индекса/профиля ────────────────────────────── */
.dcc-mhead { margin-bottom: 10px; }
.dcc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dcc-brandicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(196, 181, 253, .3);
  background: linear-gradient(160deg, rgba(139, 92, 246, .3), rgba(217, 70, 239, .16));
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(20, 12, 40, .6);
}
.dcc-brandtxt { display: inline-flex; flex-direction: column; line-height: 1.15; }
.dcc-brandname { font-family: Georgia, serif; font-size: 14px; font-weight: 700; color: #f4f2ff; }
.dcc-brandsub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, .75);
}
.dcc-headchips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── чип бесплатных призывов (изумруд, ✦) ───────────────────── */
.dcc-freechip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .5);
  background: linear-gradient(180deg, rgba(52, 211, 153, .2), rgba(6, 78, 59, .3));
  color: #6ee7b7;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: help;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
}
/* бейдж «бесплатно ×N» на карточке призыва в меню */
.dcc-freebadge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, .4);
  background: rgba(16, 185, 129, .15);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── сияющий заголовок индекса ──────────────────────────────── */
.dcc-indexhero { text-align: center; padding: 18px 8px 10px; }
.dcc-indexhero h1 {
  font-family: Georgia, serif;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0;
}
.dcc-title-glow {
  background: linear-gradient(100deg, #fde68a 0%, #fbbf24 22%, #c4b5fd 55%, #67e8f9 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 14px rgba(167, 139, 250, .35));
  animation: dcc-title-shift 7s ease-in-out infinite alternate;
}
@keyframes dcc-title-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.dcc-indexsub {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(214, 220, 247, .78);
}

/* ── компактная статистика на индексе ───────────────────────── */
.dcc-indexstats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 12px;
  padding: 6px 14px;
  margin: 8px 0 2px;
  font-size: 13px;
  color: #d6dcf7;
}
.dcc-indexstats b { font-variant-numeric: tabular-nums; color: #fff; }

/* ── парящие золотые частицы ────────────────────────────────── */
@keyframes dcc-mote {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  12% { opacity: var(--dcc-mote-o, 0.5); }
  88% { opacity: var(--dcc-mote-o, 0.5); }
  100% { transform: translateY(-130px) translateX(24px) scale(0.6); opacity: 0; }
}
.dcc-mote {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(253, 224, 171, .95), rgba(196, 181, 253, .4) 60%, transparent 70%);
  box-shadow: 0 0 10px 2px rgba(251, 191, 36, .35);
  pointer-events: none;
  z-index: 0;
  animation: dcc-mote var(--dcc-mote-t, 9s) linear infinite;
  animation-delay: var(--dcc-mote-d, 0s);
}

/* ── градиентная рамка-свечение главных кнопок ─────────────── */
.dcc-hero-btn { position: relative; isolation: isolate; }
.dcc-hero-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(196, 181, 253, .65), rgba(255, 255, 255, .08) 38%, rgba(251, 191, 36, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .75;
  transition: opacity .25s ease;
  z-index: -1;
  pointer-events: none;
}
.dcc-hero-btn:hover::before { opacity: 1; }
.dcc-hero-btn.dcc-modebtn:hover:not(:disabled) {
  box-shadow: 0 18px 44px -14px rgba(139, 92, 246, .5), 0 0 0 1px rgba(196, 181, 253, .35);
}
.dcc-hero-btn-gold::before {
  background: linear-gradient(140deg, rgba(251, 191, 36, .75), rgba(255, 255, 255, .08) 38%, rgba(245, 158, 11, .55));
}
.dcc-hero-btn.dcc-modebtn.dcc-hero-btn-gold:hover:not(:disabled) {
  box-shadow: 0 18px 44px -14px rgba(245, 158, 11, .5), 0 0 0 1px rgba(251, 191, 36, .4);
}

/* ── кнопка «Профиль» слева внизу индекса ───────────────────── */
.dcc-profilebtn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  text-align: left;
  font: inherit;
}
.dcc-profilebtn:hover:not(:disabled) {
  border-color: rgba(196, 181, 253, .55);
  box-shadow: 0 14px 34px -8px rgba(139, 92, 246, .5), 0 0 0 1px rgba(196, 181, 253, .3);
}
.dcc-profavatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(196, 181, 253, .4);
  background: linear-gradient(160deg, rgba(139, 92, 246, .35), rgba(217, 70, 239, .2));
  color: #fff;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 900;
  flex-shrink: 0;
}
.dcc-proftxt { display: inline-flex; flex-direction: column; line-height: 1.2; }
.dcc-profname { font-size: 13px; font-weight: 800; color: #fff; }
.dcc-profnote {
  font-size: 10px;
  color: rgba(214, 220, 247, .7);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── экран профиля ──────────────────────────────────────────── */
.dcc-profcard {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 8px 0;
}
.dcc-profavatar-big {
  width: 64px;
  height: 64px;
  font-size: 30px;
  position: relative;
  box-shadow: 0 8px 22px rgba(20, 12, 40, .55);
}
.dcc-profmain { display: inline-flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1; }
.dcc-profname-big {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.dcc-winrate { display: inline-flex; align-items: center; gap: 10px; }
.dcc-wrbar {
  display: inline-block;
  width: 150px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.dcc-wrbar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ee7b7, #34d399);
}
.dcc-winrate b { color: #6ee7b7; font-variant-numeric: tabular-nums; font-size: 12px; }

.dcc-statgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0;
}
@media (min-width: 760px) { .dcc-statgrid { grid-template-columns: repeat(6, 1fr); } }
.dcc-stattile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-radius: 14px;
  padding: 10px 6px;
}
.dcc-statnum { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; color: #d6dcf7; line-height: 1.1; }
.dcc-statlbl {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(214, 220, 247, .6);
}

.dcc-profwallet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 10px 0;
}
@media (min-width: 760px) { .dcc-profwallet { grid-template-columns: 1fr 1fr; } }
.dcc-walletbox, .dcc-collbox2 { border-radius: 16px; padding: 14px 16px; }
.dcc-walletpills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0;
}
.dcc-wpill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-radius: 12px;
  padding: 10px 6px;
  border: 1px solid;
}
.dcc-wpill b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dcc-wpill small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.dcc-wpill-coins { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .1); color: #fcd34d; }
.dcc-wpill-free  { border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .1); color: #6ee7b7; }
.dcc-wpill-sum   { border-color: rgba(196, 181, 253, .3); background: rgba(139, 92, 246, .12); color: #c4b5fd; }

.dcc-collbar {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
  margin: 8px 0 10px;
}
.dcc-collbar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde68a, #c4b5fd 55%, #67e8f9);
}
.dcc-rarrows { display: flex; flex-direction: column; gap: 7px; }
.dcc-rarrow { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dcc-rarrow .dcc-gem { position: static; width: 16px; height: 16px; font-size: 9px; }
.dcc-rarname2 { width: 92px; color: rgba(214, 220, 247, .8); flex-shrink: 0; }
.dcc-rarbar {
  flex: 1;
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.dcc-rarbar i { display: block; height: 100%; border-radius: 999px; background: rgba(255, 255, 255, .4); }
.dcc-rarbar i.dcc-rar-rare      { background: #34d399; }
.dcc-rarbar i.dcc-rar-epic      { background: #c084fc; }
.dcc-rarbar i.dcc-rar-legendary { background: #fbbf24; }
.dcc-rarnum { width: 42px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(214, 220, 247, .7); }

.dcc-profbottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .25);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 6px;
}
.dcc-profbottom .dcc-muted { font-size: 11.5px; max-width: 460px; }
.dcc-profactl { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.dcc-dangerbtn {
  border: 1px solid rgba(248, 113, 113, .35) !important;
  background: rgba(127, 29, 29, .18) !important;
  color: #fca5a5 !important;
}
.dcc-dangerbtn:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, .7) !important;
  background: rgba(127, 29, 29, .32) !important;
  color: #fecaca !important;
}

/* ── зелёная кнопка бесплатного призыва ─────────────────────── */
.dcc-root .dcc-goldbtn.dcc-freebtn {
  background: linear-gradient(180deg, #34d399, #059669);
  border-color: #a7f3d0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}
.dcc-root .dcc-goldbtn.dcc-freebtn:hover:not(:disabled) { filter: brightness(1.07); }

/* ── earnbox: смягчаем под новую палитру ────────────────────── */
.dcc-earnbox { border-color: rgba(255, 255, 255, .09); color: #d6dcf7; }

/* ── доступность: частицы и заголовок при reduced-motion ────── */
@media (prefers-reduced-motion: reduce) {
  .dcc-mote, .dcc-title-glow { animation: none; }
  .dcc-mote { display: none; }
  .dcc-title-glow { background-position: 0% 50%; }
}

/* ======================= v2.9.0: новые герои и механики ======================= */

/* Портреты героев из HTML-альфы и форм Лойда */
.dcc-art.a-ikki { background-image: url("../images/portraits/ikki.jpg"); }
.dcc-art.a-rinka { background-image: url("../images/portraits/rinka.jpg"); }
.dcc-art.a-luna { background-image: url("../images/portraits/luna.jpg"); }
.dcc-art.a-sokk1 { background-image: url("../images/portraits/sokk1.jpg"); }
.dcc-art.a-sokk2 { background-image: url("../images/portraits/sokk2.jpg"); }
.dcc-art.a-loyd { background-image: url("../images/portraits/loyd.jpg"); }
.dcc-art.a-alisa { background-image: url("../images/portraits/alisa.jpg"); }
.dcc-art.a-ciri { background-image: url("../images/portraits/ciri.jpg"); }
.dcc-art.a-lord { background-image: url("../images/portraits/lord.jpg"); }
.dcc-art.a-kaslana { background-image: url("../images/portraits/kaslana.jpg"); }
.dcc-art.a-kalia { background-image: url("../images/portraits/kalia.jpg"); }
.dcc-art.a-akame { background-image: url("../images/portraits/akame.jpg"); }

/* Ряд карточек — точка отсчёта для пузыря реплики */
.dcc-row { position: relative; justify-content: center; }

/* Клон Соккури: узкая «ледяная» копия, тянется на высоту ряда */
.dcc-row > .dcc-hc.dcc-clone { align-self: stretch; aspect-ratio: auto; min-height: 0; }
.dcc-hc.dcc-clone {
  border: 2px dashed #8fdcff;
  box-shadow: 0 0 14px 3px rgba(120, 210, 255, .65);
  opacity: .93;
}
.dcc-hc.dcc-clone .dcc-art { filter: grayscale(.45) sepia(1) hue-rotate(165deg) saturate(2.4) brightness(1.1); }
.dcc-hc.dcc-clone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(150, 225, 255, .4), rgba(60, 140, 255, .18) 55%, rgba(190, 240, 255, .32));
  mix-blend-mode: screen;
}
.dcc-hc.dcc-clone .dcc-hbar i { background: #6fd0ff; }

/* Остановка времени: команда «выцветает», песочные часы на карточке */
.dcc-hc.dcc-tstop {
  filter: grayscale(.8) sepia(.3) brightness(.92);
  box-shadow: 0 0 0 2px #ffd25e, 0 0 16px 4px rgba(255, 210, 94, .5);
}
.dcc-hc.dcc-tstop::before {
  content: "⏳"; position: absolute; z-index: 3; right: 6px; top: 34%;
  font-size: clamp(18px, 3vw, 34px); text-shadow: 0 2px 6px #000; pointer-events: none;
}

/* Морозные оковы Луны */
.dcc-hc.dcc-frozen, .dcc-hc.dcc-act.dcc-frozen {
  border-color: #d6f6ff;
  box-shadow: 0 0 0 2px #eaffff, 0 0 22px 7px rgba(130, 215, 255, .85);
}
.dcc-hc.dcc-frozen .dcc-art { filter: saturate(.55) brightness(1.08) hue-rotate(8deg); }

/* Герой говорит реплику */
.dcc-hc.dcc-speak { box-shadow: 0 0 0 2px #fff6dd, 0 0 20px 6px rgba(255, 236, 190, .55); }

/* Пузырь реплики (над нижним рядом, под верхним).
   v5.3.0: тёмное стекло, портрет говорящего, цвет класса (--acc: "r,g,b"),
   вход «пружиной»; --bd — отрицательная задержка, чтобы перерисовка окна
   не запускала анимацию заново, а продолжала её. */
.dcc-bub {
  --acc: 196, 181, 253;
  position: absolute;
  top: -10px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: max-content;
  min-width: 180px;
  max-width: 300px;
  padding: 9px 14px 10px 9px;
  border-radius: 16px;
  color: #f4efff;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--acc), .22), transparent 55%),
    linear-gradient(180deg, rgba(34, 25, 54, .97), rgba(15, 10, 27, .97));
  border: 1px solid rgba(var(--acc), .7);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, .62),
    0 0 22px rgba(var(--acc), .32),
    inset 0 1px 0 rgba(255, 255, 255, .1);
  pointer-events: none;
  transform: translate(-50%, -100%);
  transform-origin: var(--tail, 50%) 100%;
  animation: dcc-bubin .5s cubic-bezier(.2, 1.4, .4, 1) both;
  animation-delay: var(--bd, 0ms);
}
.dcc-bub::before { /* хвостик — повёрнутый квадрат того же стекла */
  content: ""; position: absolute; left: clamp(14px, var(--tail, 50%), calc(100% - 14px)); bottom: -7px;
  width: 13px; height: 13px; margin-left: -7px;
  background: rgb(16, 11, 28);
  border-right: 1px solid rgba(var(--acc), .7); border-bottom: 1px solid rgba(var(--acc), .7);
  transform: rotate(45deg);
}
.dcc-bub-ava {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  font: 700 16px/1 Georgia, serif; color: rgb(var(--acc));
  background: rgba(var(--acc), .18);
  border: 2px solid rgba(var(--acc), .9);
  box-shadow: 0 0 10px rgba(var(--acc), .55);
}
.dcc-bub-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; border: 0; }
.dcc-bub-body { display: flex; flex-direction: column; min-width: 0; padding-top: 1px; }
.dcc-bub-name {
  display: block;
  font: 700 10.5px/1.2 system-ui, sans-serif;
  letter-spacing: .09em; text-transform: uppercase;
  color: rgb(var(--acc));
  filter: brightness(1.25);
  margin-bottom: 3px;
}
.dcc-bub-text {
  font: italic 14px/1.38 Georgia, "Times New Roman", serif;
  color: #fbf7ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  animation: dcc-bubtext .45s ease-out both;
  animation-delay: calc(var(--bd, 0ms) + 120ms);
}
.dcc-bub-text::before { content: "«"; color: rgba(var(--acc), .95); margin-right: 1px; font-style: normal; }
.dcc-bub-text::after { content: "»"; color: rgba(var(--acc), .95); margin-left: 1px; font-style: normal; }
.dcc-bub.dcc-bub-below { top: auto; bottom: -10px; transform: translate(-50%, 100%); transform-origin: var(--tail, 50%) 0%; animation-name: dcc-bubin-below; }
.dcc-bub.dcc-bub-below::before {
  bottom: auto; top: -7px;
  border-right: 0; border-bottom: 0;
  border-left: 1px solid rgba(var(--acc), .7); border-top: 1px solid rgba(var(--acc), .7);
  background: rgb(34, 25, 54);
}
@keyframes dcc-bubin {
  from { opacity: 0; transform: translate(-50%, -100%) translateY(10px) scale(.7); }
  to { opacity: 1; transform: translate(-50%, -100%); }
}
@keyframes dcc-bubin-below {
  from { opacity: 0; transform: translate(-50%, 100%) translateY(-10px) scale(.7); }
  to { opacity: 1; transform: translate(-50%, 100%); }
}
/* прижатые к краю пузыри: хвост над центром крайней карты */
.dcc-bub[data-align="l"] { --tail: 84px; --tx: 0%; }
.dcc-bub[data-align="r"] { --tail: calc(100% - 84px); --tx: -100%; }
.dcc-bub[data-align="l"], .dcc-bub[data-align="r"] { transform: translate(var(--tx), -100%); animation-name: dcc-bubin-e; }
.dcc-bub.dcc-bub-below[data-align="l"], .dcc-bub.dcc-bub-below[data-align="r"] { transform: translate(var(--tx), 100%); animation-name: dcc-bubin-e-below; }
@keyframes dcc-bubin-e { from { opacity: 0; transform: translate(var(--tx), -100%) translateY(10px) scale(.7); } to { opacity: 1; transform: translate(var(--tx), -100%); } }
@keyframes dcc-bubin-e-below { from { opacity: 0; transform: translate(var(--tx), 100%) translateY(-10px) scale(.7); } to { opacity: 1; transform: translate(var(--tx), 100%); } }
@keyframes dcc-bubtext { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dcc-bub, .dcc-bub-text { animation: none; } }

/* v2.9.1 — кнопки боковой панели боя не «едут».
   Ядро Foundry V12/V13 задаёт всем <button> display:flex + фиксированную высоту
   (--button-size) и центрирование. Длинный текст способности переносится,
   но высота остаётся ~28px — строки вылезают за рамку и наезжают на соседей,
   а каждый вложенный элемент (иконка/пометка) становится отдельной «колонкой».
   Возвращаем обычный блочный поток: высота по содержимому, перенос слов. */
.dnd-cards .dcc-root .dcc-side .dcc-acts > button,
.dnd-cards .dcc-root .dcc-win .dcc-acts > button {
  display: block;
  height: auto;
  min-height: 32px;
  max-height: none;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  flex: 0 1 auto;
}
.dnd-cards .dcc-root .dcc-side .dcc-acts > button { width: 100%; text-align: left; }
.dnd-cards .dcc-root .dcc-side .dcc-acts > button.dcc-pass { text-align: center; }
.dnd-cards .dcc-root .dcc-side .dcc-acts > button > * { display: inline; }

/* v2.9.2 — то же для ВСЕХ кнопок окна (индекс, призыв, профиль, выбор отряда).
   Ядро Foundry даёт <button> фиксированную высоту и line-height ≈ 28px:
   карточки режимов, «Призыв героев» и «Профиль» сплющивались, а текст
   вылезал наружу. Высота — по содержимому; display/выравнивание остаются
   за классами модуля (:where не добавляет специфичности). */
.dnd-cards .dcc-root button {
  height: auto;
  max-height: none;
  line-height: 1.35;
  white-space: normal;
}
.dnd-cards .dcc-root button:not(.dcc-hc) { min-height: 0; overflow: visible; }
:where(.dnd-cards .dcc-root) button { justify-content: flex-start; }
:where(.dnd-cards .dcc-root) button:not([class*="dcc-"]),
:where(.dnd-cards .dcc-root) button.dcc-pass,
:where(.dnd-cards .dcc-root) button.dcc-sel { display: inline-block; text-align: center; }
/* Кнопка «Профиль» прибита к левому нижнему углу — резервируем под неё место,
   чтобы она не наезжала на «Призыв героев» и полосу статистики. */
.dcc-index:has(> .dcc-profilebtn) { padding-bottom: 76px; }

/* ===================== v3.0.0: монетка и аккаунты ===================== */

/* Монетка нарисована CSS: эмодзи 🪙 в Windows/Electron часто квадрат */
.dcc-coinico {
  display: inline-block;
  width: 1em; height: 1em;
  vertical-align: -0.15em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6c2 0 12%, #fcd34d 28%, #f59e0b 62%, #b45309 100%);
  box-shadow: inset 0 0 0 .09em #b45309, inset 0 0 0 .17em #fde68a, 0 0 .25em rgba(251, 191, 36, .55);
  flex: none;
}

.dnd-cards .dcc-root button.dcc-accchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(139, 92, 246, .18); border: 1px solid rgba(196, 181, 253, .45); color: #ede9fe;
}
.dnd-cards .dcc-root button.dcc-accchip-on { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .5); color: #d1fae5; }
.dcc-adminbadge {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  padding: 1px 6px; border-radius: 6px; background: #f59e0b; color: #1f1300;
}

.dcc-accbox {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; margin: 10px 0; border-radius: 14px; font-size: 13px;
}
.dcc-adminbox { display: block; border: 1px solid rgba(245, 158, 11, .45); }
.dcc-accrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }

.dcc-accform {
  max-width: 440px; margin: 18px auto; padding: 18px 20px; border-radius: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.dcc-acctitle { font-size: 20px; font-weight: 700; color: #fff; }
.dcc-acclabel { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dcc-mu); }
.dcc-acccheck { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--dcc-mu); }
.dcc-acccheck input { margin-top: 2px; flex: none; }
.dcc-accsep { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--dcc-bd); font-size: 12px; color: var(--dcc-mu); }
.dnd-cards .dcc-root input.dcc-accinput {
  height: auto; min-height: 34px; padding: 6px 10px; font-size: 14px;
  background: rgba(0, 0, 0, .35); color: var(--dcc-tx);
  border: 1px solid var(--dcc-bd); border-radius: 9px; flex: 1 1 160px; min-width: 0;
}
.dnd-cards .dcc-root input.dcc-accinput:focus { outline: none; border-color: var(--dcc-ac); box-shadow: 0 0 0 2px rgba(139, 92, 246, .35); }
.dcc-accnum { max-width: 200px; }
.dcc-accmsg { font-size: 12px; margin-top: 4px; color: #d1fae5; }
.dcc-accerr { color: #fecaca; }
.dnd-cards .dcc-root .dcc-acclabel input.dcc-accinput { flex: none; width: 100%; }
.dcc-accform .dcc-muted { font-size: 12px; line-height: 1.45; }
/* v3.0.1: вкладки «Вход / Регистрация» */
.dcc-acctabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); }
.dnd-cards .dcc-root button.dcc-acctab {
  flex: 1 1 0; text-align: center; justify-content: center; font-weight: 700; font-size: 14px;
  background: transparent; border: 1px solid transparent; color: var(--dcc-mu);
}
.dnd-cards .dcc-root button.dcc-acctab-on { background: var(--dcc-ac); border-color: var(--dcc-ac); color: #fff; }
.dcc-accbtns { display: flex; gap: 8px; flex-wrap: wrap; }
/* v3.0.2: повторы в призыве */
.dcc-newbadge.dcc-dupbadge { background: rgba(245, 158, 11, .16); border-color: rgba(245, 158, 11, .5); color: #fde68a; }
.dcc-duprule { font-size: 11px; text-align: center; margin-top: 4px; }

/* ================= v3.2.0: подсказки статусов и чей ход ================= */

/* Подсказка статуса теперь — отдельное окно поверх всего (#dcc-floattip в body),
   встроенная в карточку прячется (её обрезала рамка карточки). */
.dcc-tipbox { display: none !important; }
.dnd-cards .dcc-root .dcc-hc .dcc-st { pointer-events: auto; }
#dcc-floattip {
  display: none;
  position: fixed;
  z-index: 100000;
  width: 260px;
  max-width: calc(100vw - 16px);
  padding: 9px 11px;
  background: #211b33;
  color: #eef0ff;
  border: 1px solid rgba(196, 181, 253, .45);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .65);
  pointer-events: none;
  font-family: var(--font-primary, system-ui, sans-serif);
}
#dcc-floattip b { display: block; margin-bottom: 4px; color: #c4b5fd; font-size: 13px; }

/* Плашка «чей ход» рядом с номером раунда */
.dcc-turnpill {
  margin-left: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #eef0ff;
  white-space: nowrap;
}
.dcc-turnpill.dcc-turn-mine { background: rgba(52, 211, 153, .2); border-color: #34d399; color: #a7f3d0; box-shadow: 0 0 14px rgba(52, 211, 153, .45); }
.dcc-turnpill.dcc-turn-foe { background: rgba(248, 113, 113, .16); border-color: #f87171; color: #fecaca; }
.dcc-turnpill.dcc-turn-p1, .dcc-turnbanner.dcc-turn-p1 { border-color: #60a5fa; color: #bfdbfe; background: rgba(96, 165, 250, .18); }
.dcc-turnpill.dcc-turn-p2, .dcc-turnbanner.dcc-turn-p2 { border-color: #f472b6; color: #fbcfe8; background: rgba(244, 114, 182, .18); }

/* Баннер при смене хода — поверх поля, не мешает кликам */
.dcc-board { position: relative; }
.dcc-turnbanner {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  z-index: 70;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 34px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  background: rgba(20, 16, 34, .88);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  animation: dcc-bannerin .18s ease-out;
  backdrop-filter: blur(3px);
}
.dcc-turnbanner b { font-size: 28px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.dcc-turnbanner span { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .12em; }
.dcc-turnbanner.dcc-turn-mine { border-color: #34d399; color: #d1fae5; box-shadow: 0 0 40px rgba(52, 211, 153, .5), 0 18px 50px rgba(0, 0, 0, .6); }
.dcc-turnbanner.dcc-turn-foe { border-color: #f87171; color: #fee2e2; box-shadow: 0 0 40px rgba(248, 113, 113, .4), 0 18px 50px rgba(0, 0, 0, .6); }
@keyframes dcc-bannerin { from { opacity: 0; transform: translate(-50%, -50%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media (prefers-reduced-motion: reduce) { .dcc-turnbanner { animation: none; } }

/* Пока мой ход — панель действий подсвечена */
.dcc-side:has(.dcc-acts > button.dcc-pass:not(:disabled)) { box-shadow: 0 0 0 2px rgba(52, 211, 153, .55), 0 0 26px rgba(52, 211, 153, .25); border-radius: 16px; }

/* ================= v3.3.0: предметы из инвентаря ================= */
.dcc-relicbox { display: flex; flex-direction: column; gap: 6px; }
.dcc-relicrow { display: flex; flex-wrap: wrap; gap: 6px; }
.dnd-cards .dcc-root .dcc-relicchip, .dcc-relicchip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(192, 132, 252, .12); border: 1px solid rgba(192, 132, 252, .45); color: #f3e8ff;
}
.dnd-cards .dcc-root .dcc-relicchip.dcc-relic-on { background: rgba(192, 132, 252, .3); border-color: #c084fc; }
.dnd-cards .dcc-root button.dcc-relicbtn { border-color: rgba(192, 132, 252, .55); background: rgba(192, 132, 252, .1); }
.dnd-cards .dcc-root button.dcc-relicbtn.dcc-relic-used { opacity: .35; text-decoration: line-through; }
.dcc-invbox { display: block; }

/* ================= v3.4.0: призыв ×5/×10, пул предметов ================= */
.dcc-packrow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.dnd-cards .dcc-root button.dcc-packbtn { font-size: 13px; padding: 7px 14px; filter: saturate(.9); }
.dcc-multigrid {
  display: grid; grid-template-columns: repeat(5, minmax(70px, 96px)); gap: 8px;
  justify-content: center; margin: 6px 0 10px;
}
.dcc-multicard { animation: dcc-fadein .3s ease-out both; }
@keyframes dcc-fadein { from { opacity: 0; } to { opacity: 1; } }
.dcc-multicard.dcc-rar-legendary { border: 2px solid #fbbf24; box-shadow: 0 0 16px rgba(251, 191, 36, .6); }
.dcc-multicard.dcc-rar-epic { border: 2px solid #c084fc; box-shadow: 0 0 12px rgba(192, 132, 252, .5); }
.dcc-multicard.dcc-rar-rare { border: 2px solid #34d399; }
.dcc-multicard.dcc-rar-common { border: 2px solid #71717a; }
.dcc-itemmini { background: radial-gradient(circle at 50% 40%, rgba(52, 211, 153, .22), #14111f 70%); }
.dcc-itemico { position: absolute; inset: 0 0 18px; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.dcc-multitag {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 6px; letter-spacing: .04em;
}
.dcc-tag-new { background: #f59e0b; color: #1f1300; }
.dcc-tag-dup { background: rgba(0, 0, 0, .7); color: #fde68a; border: 1px solid #b45309; }
.dcc-tag-item { background: rgba(52, 211, 153, .25); color: #d1fae5; border: 1px solid #34d399; }
.dcc-itempoolhead { margin-top: 14px; }
.dcc-mini.dcc-itemmini.dcc-locked .dcc-itemico { filter: grayscale(1); opacity: .45; }
.dnd-cards .dcc-root .dcc-packrow > button.dcc-packbtn { display: inline-block; width: auto; min-width: 0; margin: 0; flex: 0 1 auto; }

/* ================= v3.5.0: выбор цели ================= */
.dcc-targetmark {
  position: absolute; right: 6px; top: 30px; z-index: 4; font-size: 20px;
  filter: drop-shadow(0 2px 4px #000); pointer-events: none;
  animation: dcc-targetpulse 1.6s ease-in-out infinite;
}
.dcc-hc.dcc-target { outline: 2px solid #f87171; outline-offset: 2px; }
@keyframes dcc-targetpulse { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .dcc-targetmark { animation: none; } }

/* ================= v3.6.0: галерея ================= */
.dcc-gallerybtn {
  position: absolute; left: 196px; bottom: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); text-align: left;
}
.dcc-galico { font-size: 22px; }
.dcc-galhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0 4px; flex-wrap: wrap; }
.dcc-galwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .dcc-galwrap { grid-template-columns: 1fr; } }
.dnd-cards .dcc-root button.dcc-galcard { padding: 0; display: block; width: 100%; }
.dcc-galcard.dcc-galsel { outline: 2px solid #fbbf24; outline-offset: 2px; }
.dcc-galdetail { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; }
.dcc-itemlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 6px 0 12px; }
.dcc-itemrow { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; margin: 0; }
.dcc-itemrow-off { opacity: .6; }
.dcc-itemrowico { font-size: 26px; flex: none; }

/* ================= v3.7.0: выбор предмета, мусорка, зелье по кубикам ================= */
.dcc-offer { border: 1px solid rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .08); border-radius: 12px; padding: 8px; margin: 6px 0; }
.dcc-offerrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dnd-cards .dcc-root button.dcc-offerbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border-color: rgba(251, 191, 36, .6); }
.dcc-offerbtn span { font-size: 11px; color: var(--dcc-mu); }
.dcc-handlist { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; }
.dcc-handrow { display: flex; gap: 6px; align-items: stretch; }
.dnd-cards .dcc-root .dcc-handrow > button.dcc-handuse { flex: 1 1 auto; width: auto; }
.dnd-cards .dcc-root .dcc-handrow > button.dcc-trash { flex: none; width: auto; padding: 4px 9px; }
.dcc-dosebox { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 8px; border: 1px solid var(--dcc-bd); border-radius: 8px; background: var(--dcc-card); }
.dcc-dosename { font-size: 12px; width: 100%; }
.dnd-cards .dcc-root button.dcc-dose { padding: 3px 8px; font-size: 12px; width: auto; border-color: rgba(52, 211, 153, .5); }

/* ================= v3.9.0: Эйри — прочность ================= */
.dcc-art.a-eiri { background-image: url("../images/portraits/eiri.jpg"); }
.dcc-pbar { height: 4px; margin-top: 3px; border-radius: 3px; background: rgba(0, 0, 0, .55); overflow: hidden; }
.dcc-pbar i { display: block; height: 100%; background: linear-gradient(90deg, #cbd5e1, #f8fafc); }
.dcc-pbar.dcc-pbroken { background: rgba(248, 113, 113, .35); animation: dcc-targetpulse 1s ease-in-out infinite; }

/* ===== v4.0.0: Реми — портрет, варды и Мудрый дуб ===== */
.dcc-art.a-remi { background-image: url("../images/portraits/remi.jpg"); }
.dcc-art.a-oak { background-image: url("../images/portraits/oak.jpg"); }
.dcc-hc.dcc-sum .dcc-art { filter: none; }
.dcc-hc.dcc-sum::after { background: linear-gradient(160deg, rgba(150, 255, 170, .22), rgba(40, 120, 60, .12) 55%, rgba(200, 255, 200, .18)); }
.dcc-hc.dcc-sum { border: 2px dashed #7fdc8a; box-shadow: 0 0 14px 3px rgba(110, 220, 130, .55); }
.dcc-hc.dcc-sum .dcc-hbar i { background: #6fdc7f; }
.dcc-hc.dcc-ward-bear { border-color: #c9925a; box-shadow: 0 0 14px 3px rgba(201, 146, 90, .55); }
.dcc-hc.dcc-ward-wolf { border-color: #9fb3c8; box-shadow: 0 0 14px 3px rgba(159, 179, 200, .55); }
.dcc-hc.dcc-ward-uni { border-color: #f0a8ff; box-shadow: 0 0 14px 3px rgba(240, 168, 255, .55); }
.dcc-hc.dcc-sum .dcc-wardico {
  display: flex; align-items: center; justify-content: center; position: absolute; inset: 0;
  font-size: 2.6em; background: radial-gradient(circle at 50% 40%, rgba(120, 200, 130, .35), rgba(10, 30, 15, .9));
}
.dcc-hc.dcc-ward-bear .dcc-wardico { background: radial-gradient(circle at 50% 40%, rgba(201, 146, 90, .45), rgba(30, 18, 8, .92)); }
.dcc-hc.dcc-ward-wolf .dcc-wardico { background: radial-gradient(circle at 50% 40%, rgba(159, 179, 200, .45), rgba(12, 18, 28, .92)); }
.dcc-hc.dcc-ward-uni .dcc-wardico { background: radial-gradient(circle at 50% 40%, rgba(240, 168, 255, .45), rgba(28, 10, 32, .92)); }

/* ===== v4.1.0: Башня ===== */
.dcc-towerwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; align-items: start; }
@media (max-width: 760px) { .dcc-towerwrap { grid-template-columns: 1fr; } }
.dcc-towergrid {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px;
  max-height: 560px; overflow-y: auto; padding: 4px;
  background: linear-gradient(180deg, rgba(40, 20, 60, .55), rgba(10, 10, 20, .6)); border-radius: 10px;
}
.dcc-towergrid > .dcc-floor {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: auto; min-height: 40px; padding: 3px 0; margin: 0; line-height: 1.1; white-space: normal;
  border-radius: 6px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04);
  color: #9a93ad; font-size: 12px; cursor: pointer;
}
.dcc-floor .dcc-floorst { font-size: 11px; }
.dcc-floor.dcc-floor-soon { opacity: .45; }
.dcc-floor.dcc-floor-open { color: #f1ecff; background: rgba(139, 92, 246, .25); border-color: rgba(167, 139, 250, .6); }
.dcc-floor.dcc-floor-done { color: #b9f5c9; background: rgba(52, 211, 153, .18); border-color: rgba(52, 211, 153, .55); }
.dcc-floor.dcc-floor-boss { border-color: rgba(251, 191, 36, .7); }
.dcc-floor.dcc-floor-cur { box-shadow: 0 0 10px 2px rgba(167, 139, 250, .8); animation: dcc-floorpulse 1.6s ease-in-out infinite; }
.dcc-floor.dcc-floor-sel { outline: 2px solid #fbbf24; outline-offset: 1px; }
.dcc-towerdet { display: flex; flex-direction: column; gap: 8px; }
.dcc-towertitle { font-size: 16px; }
.dcc-towerreward { padding: 6px 8px; border-radius: 8px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); }
.dcc-moblist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 560px) { .dcc-moblist { grid-template-columns: 1fr; } }
.dcc-mob { padding: 6px 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.dcc-mobhead { font-size: 13px; margin-bottom: 2px; }
.dcc-mobico { font-size: 18px; margin-right: 4px; }
.dcc-mobline { color: #cfc8de; }
.dcc-towergo { align-self: stretch; height: auto; padding: 8px; }
.dcc-cardchip {
  display: inline-flex; align-items: center; gap: 4px; height: auto; padding: 3px 9px; white-space: normal;
  border-radius: 999px; border: 1px solid currentColor; background: rgba(0, 0, 0, .3); font-size: 12px;
}
.dcc-cardchip.dcc-rar-rare { color: #34d399; }
.dcc-cardchip.dcc-rar-epic { color: #c084fc; }
.dcc-cardchip.dcc-rar-legendary { color: #fbbf24; }
.dcc-cardpick { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.dcc-towerfirst { color: #fbbf24; }
.dcc-towerfoes { text-align: center; font-size: 12px; margin: 2px 0 6px; }
.dcc-foechip { display: inline-block; padding: 1px 7px; margin: 1px; border-radius: 999px; background: rgba(239, 68, 68, .15); border: 1px solid rgba(239, 68, 68, .4); }
@keyframes dcc-floorpulse { 50% { box-shadow: 0 0 4px 1px rgba(167, 139, 250, .4); } }

/* ===== v4.2.0: Айзен ===== */
.dcc-art.a-aizen { background-image: url("../images/portraits/aizen.jpg"); }

/* ===== v4.4.0: РоманСлав ===== */
.dcc-art.a-romanslav { background-image: url("../images/portraits/romanslav.jpg"); }

/* ===== v4.5.0: редкость TowerUnits (синяя) ===== */
.dcc-rar-tower { color: #3b82f6; }
.dcc-hc.dcc-rar-tower { color: #fff; border-color: rgba(59, 130, 246, .95); }
.dcc-gem.dcc-rar-tower { box-shadow: 0 0 6px rgba(59, 130, 246, .8); }
.dcc-rarbar i.dcc-rar-tower { background: #3b82f6; }
.dcc-multicard.dcc-rar-tower { border: 2px solid #3b82f6; box-shadow: 0 0 16px rgba(59, 130, 246, .6); }
.dcc-cardchip.dcc-rar-tower { color: #3b82f6; }

/* ===== v4.6.0: Сартр Браунт ===== */
.dcc-art.a-sartr { background-image: url("../images/portraits/sartr.jpg"); }

/* ===== v4.7.0: Лотар Морнингстар ===== */
.dcc-art.a-lothar1 { background-image: url("../images/portraits/lothar1.jpg"); }
.dcc-art.a-lothar2 { background-image: url("../images/portraits/lothar2.jpg"); }

/* ===================== v4.9.0: «Бросок судьбы» — анимация призыва =====================
 * 0–0.85 с: d20-комета падает по диагонали, её хвост окрашен в лучшую редкость (видно заранее);
 *           легендарная летит фиолетовой и на середине пути вспыхивает золотом;
 * 0.85 с:   удар о стол — кубик подпрыгивает, расходятся кольца, искры, выпадает грань (7/12/17/20);
 * ~1.0 с:   вспышка цвета редкости; 1.85 с — раскрытие карты (переворот + кольцо света). */
.dcc-cast {
  --c: #a1a1aa; --glow: rgba(161, 161, 170, .55); --cs: #a1a1aa;
  position: relative; width: 100%; max-width: 340px; height: 270px;
  display: block; cursor: pointer; outline: none; border-radius: 14px;
  perspective: 600px;
}
.dcc-cast:focus-visible { box-shadow: 0 0 0 2px var(--c); }
.dcc-cast-rare { --c: #34d399; --glow: rgba(52, 211, 153, .6); --cs: #34d399; }
.dcc-cast-epic { --c: #c084fc; --glow: rgba(192, 132, 252, .65); --cs: #c084fc; }
.dcc-cast-legendary { --c: #fbbf24; --glow: rgba(251, 191, 36, .75); --cs: #c084fc; }
.dcc-cast-tower { --c: #3b82f6; --glow: rgba(59, 130, 246, .75); --cs: #c084fc; }
.dcc-cast > span { position: absolute; pointer-events: none; }

/* небо: тёмный купол, который на ударе подсвечивается цветом редкости */
.dcc-cast-sky {
  inset: 0; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 255, 255, .05), transparent 60%);
  animation: dcc-cast-sky 1.85s ease-out both;
}
@keyframes dcc-cast-sky {
  0%, 44% { box-shadow: inset 0 0 0 0 transparent; }
  52% { box-shadow: inset 0 -60px 90px -20px var(--glow); }
  100% { box-shadow: inset 0 -30px 70px -30px var(--glow); }
}

/* комета: летит из правого верхнего угла в центр стола */
.dcc-comet {
  left: 50%; top: 58%; width: 0; height: 0;
  animation: dcc-comet-fly .85s cubic-bezier(.55, .05, .9, .45) both;
}
@keyframes dcc-comet-fly {
  0% { transform: translate(150px, -150px); }
  100% { transform: translate(0, 0); }
}
.dcc-tail {
  position: absolute; left: 0; top: 0; width: 230px; height: 10px; margin-top: -5px;
  transform-origin: 0 50%; transform: rotate(-45deg);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--cs), transparent);
  filter: blur(2px) drop-shadow(0 0 8px var(--cs));
  animation: dcc-tail-fade 1.85s linear both;
}
.dcc-tail-gold { background: linear-gradient(90deg, var(--c), transparent); filter: blur(2px) drop-shadow(0 0 10px var(--c)); opacity: 0; }
.dcc-cast:not(.dcc-cast-crit) .dcc-tail { background: linear-gradient(90deg, var(--c), transparent); filter: blur(2px) drop-shadow(0 0 8px var(--c)); }
.dcc-cast-common .dcc-tail { height: 5px; margin-top: -2px; width: 150px; }
.dcc-cast-rare .dcc-tail { height: 7px; width: 190px; }
@keyframes dcc-tail-fade { 0% { opacity: 0; } 8% { opacity: 1; } 46% { opacity: 1; } 56%, 100% { opacity: 0; } }
/* легендарная/башенная: фиолетовый хвост сменяется золотым (синим) на полпути */
.dcc-cast-crit .dcc-tail-gold { animation: dcc-tail-gold 1.85s linear both; }
@keyframes dcc-tail-gold { 0%, 20% { opacity: 0; } 30% { opacity: 1; } 46% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* сам кубик d20: шестиугольник-силуэт с гранью-треугольником */
.dcc-d20 {
  position: absolute; left: -30px; top: -30px; width: 60px; height: 60px;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .55), transparent 45%),
    conic-gradient(from 30deg, color-mix(in srgb, var(--cs) 85%, #000), var(--cs), color-mix(in srgb, var(--cs) 60%, #000), var(--cs), color-mix(in srgb, var(--cs) 85%, #000));
  display: flex; align-items: center; justify-content: center;
  animation: dcc-d20-spin 1.85s cubic-bezier(.3, .7, .4, 1) both;
}
.dcc-cast:not(.dcc-cast-crit) .dcc-d20 { background: linear-gradient(160deg, rgba(255, 255, 255, .55), transparent 45%), conic-gradient(from 30deg, color-mix(in srgb, var(--c) 85%, #000), var(--c), color-mix(in srgb, var(--c) 60%, #000), var(--c), color-mix(in srgb, var(--c) 85%, #000)); }
.dcc-cast-crit .dcc-d20 { animation: dcc-d20-spin 1.85s cubic-bezier(.3, .7, .4, 1) both, dcc-d20-gold 1.85s linear both; }
@keyframes dcc-d20-gold { 0%, 26% { filter: none; } 34%, 100% { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.15); } }
.dcc-cast-tower .dcc-d20 { animation: dcc-d20-spin 1.85s cubic-bezier(.3, .7, .4, 1) both, dcc-d20-blue 1.85s linear both; }
@keyframes dcc-d20-blue { 0%, 26% { filter: none; } 34%, 100% { filter: hue-rotate(-50deg) saturate(1.6); } }
.dcc-d20::after {
  content: ""; position: absolute; inset: 18% 20% 28%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: rgba(0, 0, 0, .28);
}
@keyframes dcc-d20-spin {
  0% { transform: rotate(0) scale(.7); }
  46% { transform: rotate(900deg) scale(.95); }
  52% { transform: rotate(1080deg) scale(1.35, .8); }
  58% { transform: rotate(1080deg) scale(.9, 1.15) translateY(-14px); }
  66% { transform: rotate(1080deg) scale(1.05) translateY(0); }
  100% { transform: rotate(1080deg) scale(1.15); }
}
.dcc-d20-n {
  position: relative; z-index: 1; font: 900 22px/1 var(--dcc-font-display, "Signika", sans-serif);
  color: #fff; text-shadow: 0 0 6px rgba(0, 0, 0, .8), 0 0 14px var(--c);
  opacity: 0; animation: dcc-d20-n 1.85s ease-out both;
}
@keyframes dcc-d20-n { 0%, 55% { opacity: 0; transform: scale(2.2); } 64% { opacity: 1; transform: scale(.9); } 72%, 100% { opacity: 1; transform: scale(1); } }

/* удар: два кольца по столу (эллипсы — «вид сверху под углом») */
.dcc-impact {
  left: 50%; top: 58%; width: 40px; height: 14px; margin: -7px 0 0 -20px;
  border-radius: 50%; border: 3px solid var(--c);
  box-shadow: 0 0 18px var(--glow);
  opacity: 0; animation: dcc-impact 1.85s ease-out both;
}
.dcc-impact2 { animation-delay: .12s; border-width: 2px; }
@keyframes dcc-impact {
  0%, 45% { opacity: 0; transform: scale(.3); }
  48% { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(7.5, 6); }
}
.dcc-cast-common .dcc-impact, .dcc-cast-rare .dcc-impact2 { border-width: 2px; }
.dcc-cast-common .dcc-impact2 { display: none; }

/* искры: разлетаются веером от точки удара */
.dcc-sparks { left: 50%; top: 58%; width: 0; height: 0; }
.dcc-sparks i {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 8px var(--c);
  --a: calc(var(--k) * 27deg + 200deg);
  opacity: 0; animation: dcc-spark 1.85s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes dcc-spark {
  0%, 46% { opacity: 0; transform: rotate(var(--a)) translateX(0) scale(1); }
  50% { opacity: 1; }
  85%, 100% { opacity: 0; transform: rotate(var(--a)) translateX(120px) scale(.3); }
}

/* вспышка: короткая заливка цветом редкости */
.dcc-flash {
  inset: 0; border-radius: 14px;
  background: radial-gradient(circle at 50% 58%, #fff, var(--c) 30%, transparent 70%);
  mix-blend-mode: screen; opacity: 0;
  animation: dcc-flash 1.85s ease-out both;
}
@keyframes dcc-flash { 0%, 46% { opacity: 0; } 50% { opacity: .85; } 68% { opacity: .15; } 100% { opacity: .05; } }
.dcc-cast-common .dcc-flash { animation-name: dcc-flash-soft; }
@keyframes dcc-flash-soft { 0%, 46% { opacity: 0; } 50% { opacity: .35; } 70%, 100% { opacity: 0; } }

/* «Натуральная 20!» — только для легендарной (и башенной) */
.dcc-critword {
  left: 0; right: 0; top: 16%; text-align: center;
  font: 900 20px/1 var(--dcc-font-display, "Signika", sans-serif); letter-spacing: .08em; text-transform: uppercase;
  color: var(--c); text-shadow: 0 0 14px var(--glow), 0 2px 0 rgba(0, 0, 0, .6);
  opacity: 0; animation: dcc-critword 1.85s ease-out both;
}
@keyframes dcc-critword { 0%, 60% { opacity: 0; transform: translateY(10px) scale(.8); } 70% { opacity: 1; transform: translateY(0) scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

.dcc-cast-hint { left: 0; right: 0; bottom: 6px; text-align: center; font-size: 12px; color: rgba(214, 220, 247, .6); }

/* раскрытие одиночной карты: переворот + кольцо света редкости */
.dcc-summon-reveal { position: relative; }
.dcc-revring {
  position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px;
  border-radius: 50%; border: 3px solid var(--rc, #a1a1aa); box-shadow: 0 0 30px var(--rc, #a1a1aa);
  pointer-events: none; opacity: 0; animation: dcc-revring .9s ease-out both;
}
.dcc-reveal-rare { --rc: #34d399; } .dcc-reveal-epic { --rc: #c084fc; } .dcc-reveal-legendary { --rc: #fbbf24; } .dcc-reveal-tower { --rc: #3b82f6; }
@keyframes dcc-revring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.9); } }
.dcc-summon-reveal .dcc-summon-hero { animation: dcc-flipin .7s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes dcc-flipin {
  0% { transform: perspective(700px) rotateY(-100deg) scale(.85); filter: brightness(3); }
  55% { transform: perspective(700px) rotateY(12deg) scale(1.04); filter: brightness(1.4); }
  100% { transform: perspective(700px) rotateY(0) scale(1); filter: brightness(1); }
}

/* ×5/×10: карты переворачиваются по очереди, каждая вспыхивает своим цветом */
.dcc-multicard.dcc-flip { animation: dcc-flipin .55s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.dcc-multigrid.dcc-summon-reveal { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .dcc-cast *, .dcc-cast, .dcc-revring, .dcc-summon-reveal .dcc-summon-hero, .dcc-multicard.dcc-flip { animation: none !important; }
  .dcc-comet { transform: none; }
  .dcc-d20-n, .dcc-critword { opacity: 1; }
  .dcc-tail, .dcc-impact, .dcc-sparks i, .dcc-flash { opacity: 0; }
}

/* ===== v4.10.0: Со / Друдж ===== */
.dcc-art.a-so { background-image: url("../images/portraits/so.jpg"); }
.dcc-art.a-druj { background-image: url("../images/portraits/druj.jpg"); }

/* ===== v4.12.0: секрет — «Возвращение падшего короля» (~15 с, красная) =====
 * 0–1,9 с   серая комета, кубик выпадает единицей («Критический провал…»);
 * 3–4,6 с   тьма и три удара сердца — красная виньетка;
 * 4,6–6,6 с по кубику бегут красные трещины, он дрожит;
 * 6,6 с     кубик разлетается осколками, красная вспышка и ударная волна;
 * 8–11 с    кровавый сигил вращается, поднимаются угли, две строки пророчества;
 * 11–13,5 с из сигила поднимается чёрно-красная карта, надпись «Падший король»;
 * 13,5–15 с ослепительная красная вспышка → раскрытие героя. */
.dcc-rar-secret { color: #ef2b3c; }
.dcc-hc.dcc-rar-secret { color: #fff; border-color: rgba(239, 43, 60, .95); box-shadow: 0 0 26px rgba(239, 43, 60, .65); }
.dcc-multicard.dcc-rar-secret { border: 2px solid #ef2b3c; box-shadow: 0 0 18px rgba(239, 43, 60, .75); }
.dcc-reveal-secret { --rc: #ef2b3c; }
.dcc-reveal-secret .dcc-summon-hero { animation: dcc-flipin 1s cubic-bezier(.3, 1.4, .5, 1) both, dcc-kingglow 2.4s ease-in-out infinite 1s; }
@keyframes dcc-kingglow { 50% { box-shadow: 0 0 40px 6px rgba(239, 43, 60, .8); } }
.dcc-cast-secret { --c: #9ca3af; --glow: rgba(156, 163, 175, .35); --cs: #9ca3af; --red: #ef2b3c; --T: 15s; height: 300px; }
.dcc-cast-secret .dcc-tail { height: 5px; width: 150px; }
.dcc-cast-secret .dcc-cast-sky { animation-duration: var(--T); }
.dcc-cast-secret .dcc-d20 { animation: dcc-d20-spin 1.85s cubic-bezier(.3, .7, .4, 1) both, dcc-d20-king var(--T) linear both; }
@keyframes dcc-d20-king {
  0%, 13% { filter: none; opacity: 1; }
  20% { filter: brightness(.45) grayscale(1); }
  30% { filter: brightness(.6) sepia(1) hue-rotate(-50deg) saturate(5); transform: rotate(1080deg) scale(1.15); }
  33% { transform: rotate(1080deg) scale(1.15) translateX(-3px); }
  36% { transform: rotate(1080deg) scale(1.18) translateX(3px); }
  39% { transform: rotate(1080deg) scale(1.2) translateX(-4px); }
  42% { filter: brightness(1.6) sepia(1) hue-rotate(-50deg) saturate(6) drop-shadow(0 0 18px #ef2b3c); transform: rotate(1080deg) scale(1.3) translateX(4px); opacity: 1; }
  44%, 100% { transform: rotate(1080deg) scale(2.2); opacity: 0; }
}
.dcc-cast-secret .dcc-impact, .dcc-cast-secret .dcc-sparks i, .dcc-cast-secret .dcc-flash { animation-duration: 1.85s; }
.dcc-failword, .dcc-voidword, .dcc-line {
  left: 0; right: 0; text-align: center; opacity: 0;
  font: 900 18px/1.2 var(--dcc-font-display, "Signika", sans-serif); letter-spacing: .08em; text-transform: uppercase;
}
.dcc-failword { top: 14%; color: #9ca3af; animation: dcc-failword var(--T, 15s) ease-out both; }
@keyframes dcc-failword { 0%, 11% { opacity: 0; transform: translateY(8px); } 13% { opacity: 1; transform: none; } 19% { opacity: 1; } 22%, 100% { opacity: 0; transform: translateY(-6px); } }
.dcc-voidveil { inset: 0; border-radius: 14px; background: radial-gradient(circle at 50% 58%, rgba(60, 0, 6, .4) 0 30px, #050001 170px); opacity: 0; animation: dcc-voidveil var(--T, 15s) ease-in-out both; }
@keyframes dcc-voidveil { 0%, 19% { opacity: 0; } 26% { opacity: .96; } 92% { opacity: .96; } 100% { opacity: .5; } }
/* сердцебиение: три красных удара по краям */
.dcc-heart { inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 0 transparent; animation: dcc-heart var(--T, 15s) linear both; }
@keyframes dcc-heart {
  0%, 21% { box-shadow: inset 0 0 0 0 transparent; }
  22% { box-shadow: inset 0 0 70px 18px rgba(239, 43, 60, .75); } 24% { box-shadow: inset 0 0 30px 0 rgba(239, 43, 60, .15); }
  26.5% { box-shadow: inset 0 0 80px 22px rgba(239, 43, 60, .8); } 28.5% { box-shadow: inset 0 0 30px 0 rgba(239, 43, 60, .15); }
  31% { box-shadow: inset 0 0 95px 28px rgba(239, 43, 60, .9); } 34% { box-shadow: inset 0 0 40px 4px rgba(239, 43, 60, .3); }
  44% { box-shadow: inset 0 0 120px 40px rgba(239, 43, 60, .9); } 60%, 100% { box-shadow: inset 0 0 60px 10px rgba(239, 43, 60, .45); }
}
/* трещины: красные лучи из кубика */
.dcc-cracks { left: 50%; top: 58%; width: 0; height: 0; }
.dcc-cracks i {
  position: absolute; left: 0; top: -1.5px; height: 3px; width: 140px; transform-origin: 0 50%;
  background: linear-gradient(90deg, #fff, #ef2b3c 30%, rgba(239, 43, 60, 0));
  box-shadow: 0 0 10px #ef2b3c;
  transform: rotate(calc(var(--k) * 40deg + 12deg)) scaleX(0);
  animation: dcc-crack var(--T, 15s) cubic-bezier(.3, 0, .2, 1) both;
}
@keyframes dcc-crack { 0%, 30% { transform: rotate(calc(var(--k) * 40deg + 12deg)) scaleX(0); opacity: 1; } 43% { transform: rotate(calc(var(--k) * 40deg + 12deg)) scaleX(1); opacity: 1; } 50%, 100% { transform: rotate(calc(var(--k) * 40deg + 12deg)) scaleX(1.6); opacity: 0; } }
/* осколки кубика */
.dcc-shards { left: 50%; top: 58%; width: 0; height: 0; }
.dcc-shards i {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px;
  clip-path: polygon(50% 0, 100% 100%, 0 80%); background: linear-gradient(160deg, #fff, #ef2b3c);
  --a: calc(var(--k) * 25.7deg); opacity: 0;
  animation: dcc-shard var(--T, 15s) cubic-bezier(.15, .7, .3, 1) both;
}
@keyframes dcc-shard { 0%, 43.5% { opacity: 0; transform: rotate(var(--a)) translateX(0) rotate(0); } 44.5% { opacity: 1; } 56%, 100% { opacity: 0; transform: rotate(var(--a)) translateX(170px) rotate(540deg); } }
/* кровавый сигил */
.dcc-sigil { left: 50%; top: 52%; width: 230px; height: 230px; margin: -115px 0 0 -115px; opacity: 0; animation: dcc-sigil-in var(--T, 15s) ease-out both; }
.dcc-sigil b { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(239, 43, 60, .85); box-shadow: 0 0 22px rgba(239, 43, 60, .5), inset 0 0 22px rgba(239, 43, 60, .35); animation: dcc-rays-spin 9s linear infinite; }
.dcc-sigil b:nth-child(2) { inset: 26px; border-style: solid; border-width: 1px; animation-direction: reverse; animation-duration: 6s; }
.dcc-sigil b:nth-child(3) { inset: 52px; border: 3px dotted rgba(255, 120, 120, .9); animation-duration: 4s; }
@keyframes dcc-sigil-in { 0%, 50% { opacity: 0; transform: scale(.2) rotate(-90deg); } 60% { opacity: 1; transform: scale(1) rotate(0); } 88% { opacity: 1; transform: scale(1.05); } 96%, 100% { opacity: 0; transform: scale(1.8); } }
/* угли: поднимаются со дна */
.dcc-embers { inset: 0; overflow: hidden; border-radius: 14px; }
.dcc-embers i {
  position: absolute; bottom: -6px; left: var(--x); width: 4px; height: 4px; border-radius: 50%;
  background: #ff5a5a; box-shadow: 0 0 8px #ef2b3c; opacity: 0;
  animation: dcc-ember 3s ease-in infinite; animation-delay: calc(7.6s + var(--d));
}
@keyframes dcc-ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -300px); } }
/* строки пророчества */
.dcc-line { font: italic 600 15px/1.2 var(--dcc-font-body, "Signika", sans-serif); letter-spacing: .04em; text-transform: none; color: #ffb3b3; text-shadow: 0 0 12px rgba(239, 43, 60, .9); }
.dcc-line1 { top: 9%; animation: dcc-line1 var(--T, 15s) ease-out both; }
.dcc-line2 { top: 86%; animation: dcc-line2 var(--T, 15s) ease-out both; }
@keyframes dcc-line1 { 0%, 57% { opacity: 0; transform: translateY(6px); filter: blur(4px); } 62% { opacity: 1; transform: none; filter: none; } 74% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes dcc-line2 { 0%, 65% { opacity: 0; transform: translateY(6px); filter: blur(4px); } 70% { opacity: 1; transform: none; filter: none; } 78% { opacity: 1; } 82%, 100% { opacity: 0; } }
/* карта поднимается из сигила */
.dcc-risecard {
  left: 50%; top: 52%; width: 92px; height: 124px; margin: -62px 0 0 -46px; border-radius: 10px;
  background: radial-gradient(circle at 50% 40%, rgba(239, 43, 60, .45), transparent 65%), linear-gradient(160deg, #1a0306, #050001 70%);
  border: 2px solid #ef2b3c; box-shadow: 0 0 30px rgba(239, 43, 60, .8);
  display: flex; align-items: center; justify-content: center; opacity: 0;
  animation: dcc-risecard var(--T, 15s) cubic-bezier(.2, .8, .3, 1) both;
}
.dcc-risecard span { font-size: 40px; color: #ff6b6b; text-shadow: 0 0 14px #ef2b3c; }
@keyframes dcc-risecard { 0%, 73% { opacity: 0; transform: translateY(90px) scale(.6) rotateY(0); } 82% { opacity: 1; transform: translateY(0) scale(1) rotateY(0); } 88% { transform: scale(1.12) rotateY(180deg); } 92% { transform: scale(1.25) rotateY(360deg); opacity: 1; } 96%, 100% { opacity: 0; transform: scale(2.2); } }
.dcc-voidword { top: 9%; font-size: 22px; color: #ff4a57; text-shadow: 0 0 18px rgba(239, 43, 60, .95), 0 2px 0 #000; animation: dcc-voidword var(--T, 15s) ease-out both; }
@keyframes dcc-voidword { 0%, 80% { opacity: 0; transform: scale(.7); letter-spacing: .5em; } 86% { opacity: 1; transform: scale(1.08); letter-spacing: .14em; } 100% { opacity: 1; transform: scale(1); } }
/* удар осколков и финальная вспышка */
.dcc-redflash { inset: 0; border-radius: 14px; background: radial-gradient(circle at 50% 55%, #fff, #ef2b3c 35%, rgba(120, 0, 10, .6) 70%, transparent); mix-blend-mode: screen; opacity: 0; animation: dcc-redflash var(--T, 15s) ease-out both; }
@keyframes dcc-redflash { 0%, 43.5% { opacity: 0; } 44.5% { opacity: 1; } 50% { opacity: .1; } 53%, 91% { opacity: 0; } 96% { opacity: 1; } 100% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .dcc-cast-secret .dcc-d20 { opacity: 0; }
  .dcc-failword, .dcc-line, .dcc-cracks i, .dcc-shards i, .dcc-embers i, .dcc-redflash, .dcc-heart, .dcc-risecard { opacity: 0; animation: none; }
  .dcc-voidveil { opacity: .9; } .dcc-sigil { opacity: 1; } .dcc-voidword { opacity: 1; }
}
.dcc-art.a-kain { background-image: url("../images/portraits/kain.jpg"); }

/* ===== v4.13.0: секретная сцена на весь экран Foundry + тряска =====
 * Оверлей живёт прямо в <body>, вне окна модуля. Сцена 380×330 масштабируется под экран (--ovs).
 * Тряска синхронна с событиями сцены: удары сердца (3,2 / 3,9 / 4,6 с), раскол (6,6 с), сигил (8,1 с), явление (13,6 с). */
.dcc-secret-overlay {
  position: fixed; inset: 0; z-index: 100000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 55%, rgba(40, 4, 10, .78), rgba(0, 0, 0, .94) 70%);
  animation: dcc-ov-in .5s ease-out both;
  overflow: hidden;
}
@keyframes dcc-ov-in { from { opacity: 0; } to { opacity: 1; } }
.dcc-secret-overlay.dcc-ov-out { animation: dcc-ov-out .65s ease-in both; pointer-events: none; }
@keyframes dcc-ov-out { from { opacity: 1; } to { opacity: 0; } }
.dcc-ov-stage { transform: scale(var(--ovs, 2)); transform-origin: 50% 50%; animation: dcc-quake 15s linear both; }
.dcc-secret-overlay .dcc-cast { width: 380px; max-width: none; height: 330px; cursor: pointer; }
.dcc-secret-overlay .dcc-cast > .dcc-cast-sky, .dcc-secret-overlay .dcc-voidveil, .dcc-secret-overlay .dcc-heart,
.dcc-secret-overlay .dcc-redflash, .dcc-secret-overlay .dcc-embers { border-radius: 0; inset: -60vh -60vw; }
.dcc-ov-hint {
  position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom, 0px));
  text-align: center; font: 600 13px/1 var(--dcc-font-body, "Signika", sans-serif); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 180, 180, .55);
}
/* тряска всего, что под оверлеем (окна, интерфейс, сцена) */
body.dcc-quake > *:not(.dcc-secret-overlay) { animation: dcc-quake-bg 15s linear both; }
@keyframes dcc-quake {
  0%, 21% { transform: scale(var(--ovs, 2)); }
  21.4% { transform: scale(var(--ovs, 2)) translate(-4px, 3px); } 21.8% { transform: scale(var(--ovs, 2)) translate(4px, -2px); } 22.3% { transform: scale(var(--ovs, 2)); }
  26% { transform: scale(var(--ovs, 2)) translate(-5px, 3px); } 26.4% { transform: scale(var(--ovs, 2)) translate(5px, -3px); } 26.9% { transform: scale(var(--ovs, 2)); }
  30.7% { transform: scale(var(--ovs, 2)) translate(-7px, 4px); } 31.1% { transform: scale(var(--ovs, 2)) translate(6px, -4px); } 31.6% { transform: scale(var(--ovs, 2)); }
  35% { transform: scale(var(--ovs, 2)) translate(-1px, 1px); } 37% { transform: scale(var(--ovs, 2)) translate(2px, -1px); } 39% { transform: scale(var(--ovs, 2)) translate(-2px, 2px); } 41% { transform: scale(var(--ovs, 2)) translate(3px, -2px); }
  44% { transform: scale(var(--ovs, 2)) translate(-14px, 9px) rotate(-1.2deg); } 44.6% { transform: scale(var(--ovs, 2)) translate(12px, -10px) rotate(1deg); }
  45.2% { transform: scale(var(--ovs, 2)) translate(-9px, 6px); } 45.8% { transform: scale(var(--ovs, 2)) translate(7px, -5px); } 46.6% { transform: scale(var(--ovs, 2)) translate(-4px, 3px); } 47.6% { transform: scale(var(--ovs, 2)); }
  54% { transform: scale(var(--ovs, 2)) translate(-6px, 4px); } 54.5% { transform: scale(var(--ovs, 2)) translate(5px, -3px); } 55.2% { transform: scale(var(--ovs, 2)); }
  88% { transform: scale(var(--ovs, 2)); }
  90.7% { transform: scale(var(--ovs, 2)) translate(-16px, 10px) rotate(-1.5deg); } 91.3% { transform: scale(var(--ovs, 2)) translate(14px, -12px) rotate(1.2deg); }
  92% { transform: scale(var(--ovs, 2)) translate(-10px, 7px); } 92.8% { transform: scale(var(--ovs, 2)) translate(7px, -5px); } 93.8% { transform: scale(var(--ovs, 2)) translate(-3px, 2px); } 95%, 100% { transform: scale(var(--ovs, 2)); }
}
@keyframes dcc-quake-bg {
  0%, 21% { transform: none; }
  21.4% { transform: translate(-3px, 2px); } 21.8% { transform: translate(3px, -2px); } 22.3% { transform: none; }
  26% { transform: translate(-4px, 2px); } 26.4% { transform: translate(4px, -2px); } 26.9% { transform: none; }
  30.7% { transform: translate(-5px, 3px); } 31.1% { transform: translate(5px, -3px); } 31.6% { transform: none; }
  44% { transform: translate(-12px, 8px); } 44.6% { transform: translate(10px, -8px); } 45.2% { transform: translate(-7px, 5px); } 46% { transform: translate(5px, -3px); } 47% { transform: none; }
  54% { transform: translate(-5px, 3px); } 54.5% { transform: translate(4px, -3px); } 55.2% { transform: none; }
  90.7% { transform: translate(-14px, 9px); } 91.3% { transform: translate(12px, -10px); } 92% { transform: translate(-8px, 5px); } 93% { transform: translate(5px, -3px); } 94.5%, 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dcc-ov-stage, body.dcc-quake > *:not(.dcc-secret-overlay) { animation: none !important; }
}

/* ===== v4.15.0: Лайти и Дарки ===== */
.dcc-art.a-lightdark { background-image: url("../images/portraits/lightdark.jpg"); }

/* v4.15.2: админ — прогресс башни */
.dcc-admincheck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; opacity: .9; cursor: pointer; }
.dcc-admincheck input { margin: 0; }
.dcc-adminbox .dcc-hint { font-size: 12px; opacity: .65; margin-top: 6px; }

/* v4.16.0: значки статусов — цвет рамки по типу */
.dcc-st.dcc-st-control { border: 2px solid #a855f7; box-shadow: 0 0 6px rgba(168, 85, 247, .7); }
.dcc-st.dcc-st-debuff { border: 2px solid #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, .6); }
.dcc-st.dcc-st-dot { border: 2px solid #f97316; }
.dcc-st.dcc-st-buff { border: 2px solid #22c55e; }
.dcc-st.dcc-st-special { border: 2px solid #f5c542; }
.dcc-st.dcc-st-pas { border: 1px solid rgba(255, 233, 176, .55); opacity: .85; }
.dcc-tipbox .dcc-stkind { display: block; font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin: -2px 0 4px; }
.dcc-st-control .dcc-tipbox .dcc-stkind { color: #d8b4fe; }
.dcc-st-debuff .dcc-tipbox .dcc-stkind { color: #fca5a5; }
.dcc-st-dot .dcc-tipbox .dcc-stkind { color: #fdba74; }
.dcc-st-buff .dcc-tipbox .dcc-stkind { color: #86efac; }
.dcc-st-special .dcc-tipbox .dcc-stkind { color: #fde68a; }
.dcc-art.a-sanek { background-image: url("../images/portraits/sanek.jpg"); }
.dcc-art.a-anatoly { background-image: url("../images/portraits/anatoly.jpg"); }
.dcc-art.a-varitit { background-image: url("../images/portraits/varitit.jpg"); }
/* v4.21.0: герой недоступен (запрет этажа / несовместимость) */
.dcc-pick.dcc-banned { filter: grayscale(.85) brightness(.7); }
/* v4.21.1: «Правила» — справа от «Галереи» в меню и кнопкой в бою (а не в углу окна) */
.dcc-rulesbtn {
  position: absolute; left: 352px; bottom: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 7px 14px 7px 10px; border-radius: 8px; color: inherit; font: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); text-align: left;
}
.dcc-rulesbtn:hover { border-color: rgba(196, 181, 253, .55); }
.dcc-rulesmini {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  padding: 6px 12px; border-radius: 8px; font-size: 13px;
  border: 1px solid rgba(196, 181, 253, .35); background: rgba(20, 16, 30, .6); color: #d6dcf7;
}
.dcc-rulesmini:hover { border-color: rgba(196, 181, 253, .8); color: #eef0ff; }
/* v4.21.2: секретную сцену первые 5 с не пропустить — подсказка появляется позже */
.dcc-ov-hint { opacity: 0; animation: dcc-hint-in .4s ease 5s forwards; }
@keyframes dcc-hint-in { to { opacity: 1; } }

/* ===================== v4.22.0: анимации боя (scripts/fx.mjs) ===================== */
.dcc-fxlayer { position: absolute; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.dcc-fx { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
/* удар: два скрещённых росчерка + вспышка */
.dcc-fx-slash { animation: dcc-fx-fade .5s ease-out forwards; }
.dcc-fx-slash::before, .dcc-fx-slash::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120%; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff 35%, #ffd2a8 60%, transparent);
  box-shadow: 0 0 12px #ff9d5c, 0 0 24px rgba(255, 120, 60, .7);
  transform: translate(-50%, -50%) rotate(-32deg) scaleX(0); animation: dcc-fx-slashline .26s cubic-bezier(.2,.8,.3,1) forwards;
}
.dcc-fx-slash::after { transform: translate(-50%, -50%) rotate(28deg) scaleX(0); animation-delay: .07s; }
@keyframes dcc-fx-slashline { to { transform: translate(-50%, -50%) rotate(var(--r, -32deg)) scaleX(1); } }
.dcc-fx-slash::after { --r: 28deg; }
.dcc-fx-burst { border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 220, .9) 0%, rgba(255, 150, 80, .55) 30%, rgba(255, 80, 40, 0) 65%);
  animation: dcc-fx-pop .45s ease-out forwards; }
@keyframes dcc-fx-pop { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0; } }
@keyframes dcc-fx-fade { 0% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
/* снаряды */
.dcc-fx-orb { width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff 0%, #c4b5fd 30%, #7c3aed 60%, rgba(124, 58, 237, 0) 72%);
  box-shadow: 0 0 18px #a78bfa, 0 0 36px rgba(139, 92, 246, .8); }
.dcc-fx-bolt { width: 64px; height: 8px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 60%, #fbcfe8);
  box-shadow: 0 0 14px #f0abfc, 0 0 28px rgba(232, 121, 249, .8); }
/* волна по ряду */
.dcc-fx-wave { border-radius: 18px; background: linear-gradient(90deg, rgba(255,170,90,0), rgba(255,170,90,.55), rgba(255,170,90,0));
  animation: dcc-fx-sweep .7s ease-out forwards; mix-blend-mode: screen; }
.dcc-fx-wave.dcc-fx-magic { background: linear-gradient(90deg, rgba(167,139,250,0), rgba(167,139,250,.6), rgba(56,189,248,.35), rgba(167,139,250,0)); }
.dcc-fx-wave.dcc-fx-pure { background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(244,114,182,.4), rgba(255,255,255,0)); }
@keyframes dcc-fx-sweep { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 30% { opacity: 1; } 100% { opacity: 0; clip-path: inset(0 0 0 0); } }
/* ульта — золотое кольцо, поддержка — мягкое сияние */
.dcc-fx-ultring { border-radius: 16px; border: 3px solid #fde68a; box-shadow: 0 0 22px #fbbf24, inset 0 0 22px rgba(251, 191, 36, .6);
  animation: dcc-fx-ring .85s ease-out forwards; }
@keyframes dcc-fx-ring { 0% { transform: translate(-50%, -50%) scale(.9); opacity: 0; } 25% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.18); opacity: 0; } }
.dcc-fx-castglow { border-radius: 14px; background: radial-gradient(ellipse, rgba(196, 181, 253, .45), rgba(196, 181, 253, 0) 70%); animation: dcc-fx-fade .65s ease-out forwards; }
/* урон со временем — капли */
.dcc-fx-drip { width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c, #84cc16); box-shadow: 0 0 8px var(--c, #84cc16);
  opacity: 0; animation: dcc-fx-drip .8s ease-in forwards; }
@keyframes dcc-fx-drip { 0% { opacity: 0; transform: translate(-50%, -80%); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 90%); } }
.dcc-fx-skull { font-size: 46px; animation: dcc-fx-skull 1.05s ease-out forwards; filter: drop-shadow(0 0 10px #000); }
.dcc-fx-skull::before { content: "💀"; }
@keyframes dcc-fx-skull { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; } 100% { transform: translate(-50%, -90%) scale(1); opacity: 0; } }
/* лечение */
.dcc-fx-healglow { border-radius: 14px; background: radial-gradient(ellipse at 50% 70%, rgba(74, 222, 128, .55), rgba(74, 222, 128, 0) 70%);
  box-shadow: inset 0 0 26px rgba(74, 222, 128, .6); animation: dcc-fx-fade .85s ease-out forwards; }
.dcc-fx-plus { font: 800 22px/1 sans-serif; color: #86efac; text-shadow: 0 0 8px #22c55e, 0 0 16px #16a34a; opacity: 0;
  animation: dcc-fx-rise 1.1s ease-out forwards; }
@keyframes dcc-fx-rise { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -90px) scale(1.1); } }
/* щит — пузырь */
.dcc-fx-bubble { border-radius: 20px; border: 2px solid rgba(147, 197, 253, .95);
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0) 55%, rgba(96, 165, 250, .35));
  box-shadow: 0 0 20px rgba(96, 165, 250, .8), inset 0 0 26px rgba(147, 197, 253, .55); animation: dcc-fx-bubble .9s ease-out forwards; }
@keyframes dcc-fx-bubble { 0% { transform: translate(-50%, -50%) scale(.82); opacity: 0; } 30% { transform: translate(-50%, -50%) scale(1.03); opacity: 1; } 70% { opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
/* статусы: кольцо + значок + стрелки */
.dcc-fx-string { border-radius: 50%; border: 3px solid var(--sc); box-shadow: 0 0 16px var(--sc); animation: dcc-fx-ring .85s ease-out forwards; }
.dcc-fx-sticon { font-size: 34px; filter: drop-shadow(0 0 8px var(--sc)); animation: dcc-fx-stpop 1.05s ease-out forwards; }
@keyframes dcc-fx-stpop { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.35); opacity: 1; } 70% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -70%) scale(.9); opacity: 0; } }
.dcc-fx-arrow { font: 900 16px/1 sans-serif; color: var(--sc, #fde68a); text-shadow: 0 0 8px var(--sc, #fbbf24); opacity: 0; animation: dcc-fx-rise .9s ease-out forwards; }
.dcc-fx-arrow.dcc-fx-down { animation-name: dcc-fx-fall; }
@keyframes dcc-fx-fall { 0% { opacity: 0; transform: translate(-50%, -30px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 50px); } }
.dcc-fx-buff { --sc: #facc15; }
.dcc-fx-debuff { --sc: #ef4444; }
.dcc-fx-ctrl { --sc: #a855f7; }
.dcc-fx-spec { --sc: #f5c542; }
@media (prefers-reduced-motion: reduce) { .dcc-fxlayer { display: none; } }
.dcc-art.a-korha { background-image: url("../images/portraits/korha.jpg"); }
.dcc-art.a-raast { background-image: url("../images/portraits/raast.jpg"); }
/* v4.24.0: «Сокрытие» — герой растворяется в тенях */
.dcc-hc.dcc-hiddenfx { filter: grayscale(.6) brightness(.6) blur(.6px); opacity: .55; box-shadow: 0 0 24px 4px rgba(15, 10, 30, .9) inset; }
.dcc-art.a-jodah { background-image: url("../images/portraits/jodah.jpg"); }
/* v4.25.0: сильный босс башни */
.dcc-floor.dcc-floor-elite { border-color: #ef4444 !important; box-shadow: 0 0 14px rgba(239, 68, 68, .55), inset 0 0 10px rgba(239, 68, 68, .25); background: linear-gradient(160deg, rgba(127, 29, 29, .55), rgba(30, 10, 20, .7)) !important; }
.dcc-elitechip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: linear-gradient(90deg, #b91c1c, #7f1d1d); box-shadow: 0 0 12px rgba(239, 68, 68, .6); vertical-align: middle; }
.dcc-art.a-mambu { background-image: url("../images/portraits/mambu.jpg"); }

/* ================= v4.29.0: вызовы, лидеры, рейтинговый драфт ================= */
.dcc-leadbtn {
  position: absolute; left: 528px; bottom: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 7px 14px 7px 10px; border-radius: 8px; color: inherit; font: inherit;
  background: linear-gradient(160deg, rgba(251, 191, 36, .12), rgba(255, 255, 255, .02));
  border: 1px solid rgba(251, 191, 36, .3); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); text-align: left;
}
.dcc-leadbtn:hover { border-color: rgba(251, 191, 36, .7); }
.dcc-chbanner {
  position: sticky; top: 0; z-index: 50; margin: 0 0 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(120deg, rgba(139, 92, 246, .35), rgba(20, 16, 30, .92));
  border: 1px solid rgba(196, 181, 253, .6); box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
  animation: dcc-chpulse 1.6s ease-in-out infinite;
}
.dcc-chbanner-ranked { background: linear-gradient(120deg, rgba(251, 191, 36, .35), rgba(20, 16, 30, .92)); border-color: rgba(251, 191, 36, .7); }
.dcc-chbtns { display: inline-flex; gap: 6px; }
@keyframes dcc-chpulse { 50% { box-shadow: 0 12px 30px rgba(0, 0, 0, .55), 0 0 0 3px rgba(196, 181, 253, .25); } }
@media (prefers-reduced-motion: reduce) { .dcc-chbanner { animation: none; } }
.dcc-rankchip { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: rgba(251, 191, 36, .15); border: 1px solid rgba(251, 191, 36, .4); }
.dnd-cards .dcc-root button.dcc-rankbtn:not(:disabled) { background: linear-gradient(160deg, #b45309, #78350f); border-color: #fbbf24; }
.dcc-leadlist { display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin: 10px auto; width: 100%; }
.dcc-leadrow { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "pos name main" "pos sub sub"; align-items: center; gap: 0 10px; padding: 8px 12px; border-radius: 10px; }
.dcc-leadpos { grid-area: pos; font-size: 20px; text-align: center; font-weight: 700; }
.dcc-leadname { grid-area: name; font-weight: 600; }
.dcc-leadmain { grid-area: main; font-weight: 700; color: #fde68a; }
.dcc-leadsub { grid-area: sub; font-size: 12px; }
.dcc-leadme { outline: 2px solid rgba(251, 191, 36, .7); }
.dcc-draft { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; margin: 6px 0; }
.dcc-draftside { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 10px; border: 1px solid transparent; }
.dcc-draftturn { border-color: rgba(251, 191, 36, .75); box-shadow: 0 0 18px rgba(251, 191, 36, .25); }
.dcc-draftfoe { text-align: right; }
.dcc-draftfoe .dcc-draftslots { justify-content: flex-end; }
.dcc-draftname { font-weight: 700; font-size: 13px; }
.dcc-draftslots { display: flex; gap: 6px; flex-wrap: wrap; }
.dcc-draftslot { position: relative; width: 62px; height: 84px; border-radius: 8px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); font-size: 22px; font-weight: 700; }
.dcc-draftslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcc-draftslot b { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; line-height: 1.15; padding: 2px; background: rgba(0, 0, 0, .7); text-align: center; }
.dcc-draftempty { color: rgba(255, 255, 255, .3); border-style: dashed; }
.dcc-draftmid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dcc-draftvs { font-size: 22px; font-weight: 800; color: #fbbf24; }
.dcc-rankwin { color: #fde68a; }
.dcc-rankdown { color: #fca5a5; }
@media (max-width: 760px) { .dcc-draft { grid-template-columns: 1fr; } .dcc-draftfoe { text-align: left; } .dcc-draftfoe .dcc-draftslots { justify-content: flex-start; } }

/* v4.29.1: нижняя панель меню — ряд кнопок в потоке (не по координатам) */
.dcc-bottombar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 14px; position: relative; z-index: 5; }
.dcc-bottombar > .dcc-profilebtn, .dcc-bottombar > .dcc-gallerybtn, .dcc-bottombar > .dcc-rulesbtn, .dcc-bottombar > .dcc-leadbtn {
  position: static; left: auto; bottom: auto; margin: 0; min-height: 48px; border-radius: 10px;
}
.dcc-bottombar .dcc-proftxt { min-width: 0; }
.dcc-bottombar .dcc-profnote { display: block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= v4.31.0: ресурсы башни, эволюция и крафт ================= */
.dcc-soonbtn { opacity: .78; }
.dcc-soonbtn:hover { opacity: 1; }
.dcc-soonchip { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px;
  background: rgba(148, 163, 184, .2); border: 1px solid rgba(148, 163, 184, .45); color: #cbd5e1; vertical-align: 1px; }
.dcc-reshead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dcc-ressort { display: inline-flex; gap: 4px; }
.dnd-cards .dcc-root .dcc-ressort .dcc-acctab { height: 26px; min-height: 26px; line-height: 26px; padding: 0 10px; font-size: 12px; }
.dcc-resgroup { font-size: 12px; font-weight: 700; letter-spacing: .03em; margin: 8px 0 4px; }
.dcc-resgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dcc-restile { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-areas: "ico name" "ico meta" "cnt cnt" "bar bar";
  gap: 1px 8px; padding: 8px 10px 7px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .14); color: #e5e7eb; }
.dcc-restile.dcc-rar-rare { border-color: rgba(52, 211, 153, .55); background: linear-gradient(160deg, rgba(52, 211, 153, .14), rgba(255, 255, 255, .02)); }
.dcc-restile.dcc-rar-epic { border-color: rgba(192, 132, 252, .6); background: linear-gradient(160deg, rgba(192, 132, 252, .16), rgba(255, 255, 255, .02)); }
.dcc-restile.dcc-rar-legendary { border-color: rgba(251, 191, 36, .8); background: linear-gradient(160deg, rgba(251, 191, 36, .2), rgba(255, 255, 255, .02));
  box-shadow: 0 0 16px rgba(251, 191, 36, .2); }
.dcc-resico { grid-area: ico; font-size: 28px; line-height: 40px; text-align: center; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.dcc-resname { grid-area: name; font-weight: 700; font-size: 12.5px; line-height: 1.2; align-self: end; }
.dcc-resmeta { grid-area: meta; font-size: 10.5px; opacity: .7; }
.dcc-rescount { grid-area: cnt; font-weight: 800; font-size: 15px; margin-top: 3px; }
.dcc-restile.dcc-rar-legendary .dcc-rescount { color: #fde68a; }
.dcc-resbar { grid-area: bar; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dcc-resbar i { display: block; height: 100%; background: currentColor; opacity: .75; }
.dcc-restile.dcc-rar-common .dcc-resbar i { background: #a1a1aa; }
.dcc-restile.dcc-rar-rare .dcc-resbar i { background: #34d399; }
.dcc-restile.dcc-rar-epic .dcc-resbar i { background: #c084fc; }
.dcc-restile.dcc-rar-legendary .dcc-resbar i { background: #fbbf24; }
.dcc-resfull { outline: 1px dashed rgba(248, 113, 113, .7); }
.dcc-towerdrops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; font-size: 12px; }
.dcc-reschip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); color: #e5e7eb; }
.dcc-reschip.dcc-rar-rare { border-color: rgba(52, 211, 153, .6); }
.dcc-reschip.dcc-rar-epic { border-color: rgba(192, 132, 252, .7); }
.dcc-reschip.dcc-rar-legendary { border-color: rgba(251, 191, 36, .85); color: #fde68a; }
.dcc-reswin { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; align-items: center; margin: 4px 0; }
.dnd-cards .dcc-root .dcc-ressort .dcc-acctab { white-space: nowrap; flex: 0 0 auto; }
.dcc-reswin { font-size: 14px; font-weight: 600; }

.dcc-art.a-karin { background-image: url("../images/portraits/karin.jpg"); }
.dcc-art.a-teius { background-image: url("../images/portraits/teius.jpg"); }
.dcc-art.a-beatrice { background-image: url("../images/portraits/beatrice.jpg"); }
.dcc-towerban { margin: 6px 0; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; background: rgba(220, 38, 38, .14); border: 1px solid rgba(248, 113, 113, .5); color: #fecaca; }

/* v4.38.0: «Воля этажа» и застава */
.dcc-toweraura { margin: 6px 0; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; background: rgba(30, 41, 59, .5); border: 1px solid rgba(148, 163, 184, .35); }
.dcc-toweraura-h { font-weight: 700; color: #e2e8f0; margin-bottom: 2px; }
.dcc-aura.good { color: #bbf7d0; }
.dcc-aura.bad { color: #fecaca; }
.dcc-towergate { margin: 6px 0; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; background: rgba(234, 179, 8, .14); border: 1px solid rgba(250, 204, 21, .5); color: #fef08a; }

/* v4.41.0: сцена «Новый герой» за босса башни */
.dcc-trophy-overlay {
  position: fixed; inset: 0; z-index: 100000; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(18, 32, 72, .82), rgba(2, 4, 14, .95) 70%);
  animation: dcc-ov-in .45s ease-out both;
}
.dcc-trophy-overlay.dcc-ov-out { animation: dcc-ov-out .6s ease-in both; pointer-events: none; }
.dcc-tr-stage { position: relative; width: 420px; height: 520px; transform: scale(var(--ovs, 1.6)); transform-origin: 50% 50%;
  font-family: var(--dcc-font-body, "Signika", sans-serif); color: #e2e8f0; text-align: center; }
.dcc-tr-stage > * { position: absolute; left: 50%; }
.dcc-tr-floor { top: 18px; transform: translateX(-50%); white-space: nowrap; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #bfdbfe; text-shadow: 0 0 12px rgba(96, 165, 250, .8); animation: dcc-tr-floor 1.1s ease-out .15s both; }
@keyframes dcc-tr-floor { from { opacity: 0; letter-spacing: .5em; } to { opacity: 1; letter-spacing: .14em; } }
.dcc-tr-pillar { top: -60px; width: 150px; height: 470px; margin-left: -75px; border-radius: 50%;
  background: linear-gradient(to bottom, rgba(191, 219, 254, 0), rgba(147, 197, 253, .75) 55%, rgba(192, 132, 252, 0));
  filter: blur(14px); animation: dcc-tr-pillar 1.6s ease-out .55s both; }
@keyframes dcc-tr-pillar { 0% { opacity: 0; transform: scaleX(.1); } 40% { opacity: 1; transform: scaleX(1.3); } 100% { opacity: .35; transform: scaleX(.9); } }
.dcc-tr-rays { top: 37px; width: 380px; height: 380px; margin-left: -190px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(147, 197, 253, .32) 0 8deg, rgba(147, 197, 253, 0) 8deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%);
  opacity: 0; animation: dcc-tr-fade .8s ease-out 2.3s forwards, dcc-rays-spin 18s linear 2.3s infinite; }
.dcc-tr-ring { top: 127px; width: 200px; height: 200px; margin-left: -100px; border-radius: 50%; border: 3px solid rgba(191, 219, 254, .9);
  opacity: 0; animation: dcc-revring .9s ease-out 2.25s forwards; }
.dcc-tr-motes { top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.dcc-tr-motes i { position: absolute; left: var(--x); bottom: 40px; width: 4px; height: 4px; border-radius: 50%;
  background: #bfdbfe; box-shadow: 0 0 6px 2px rgba(147, 197, 253, .8); opacity: 0;
  animation: dcc-tr-mote 2.6s ease-in calc(1.8s + var(--d)) infinite; }
@keyframes dcc-tr-mote { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-320px); } }
.dcc-tr-card { top: 92px; width: 180px; height: 270px; margin-left: -90px; perspective: 900px; animation: dcc-tr-drop 1s cubic-bezier(.2, .9, .3, 1.15) 1s both; }
@keyframes dcc-tr-drop { from { opacity: 0; transform: translateY(-260px) scale(.6); } to { opacity: 1; transform: translateY(0) scale(1); } }
.dcc-tr-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: dcc-tr-flip .7s ease-in-out 2s both; }
@keyframes dcc-tr-flip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.dcc-tr-back, .dcc-tr-front { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  border: 3px solid #93c5fd; box-shadow: 0 0 24px 6px rgba(59, 130, 246, .65), inset 0 0 18px rgba(147, 197, 253, .4); }
.dcc-tr-back { display: flex; align-items: center; justify-content: center; font-size: 64px;
  background: radial-gradient(circle at 50% 40%, #1e3a8a, #0b1530 75%); animation: dcc-tr-glow .5s ease-in-out 1.1s 2 alternate; }
@keyframes dcc-tr-glow { to { box-shadow: 0 0 40px 14px rgba(147, 197, 253, .95), inset 0 0 30px rgba(191, 219, 254, .7); } }
.dcc-tr-front { transform: rotateY(180deg); background: #0b1530; }
.dcc-tr-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcc-tr-front b { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 80px; color: #bfdbfe; }
.dcc-tr-badge { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #eff6ff; background: linear-gradient(90deg, rgba(37, 99, 235, .9), rgba(147, 51, 234, .9)); }
.dcc-tr-title { top: 372px; transform: translateX(-50%); white-space: nowrap; font-size: 14px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #c4b5fd;
  opacity: 0; animation: dcc-tr-up .5s ease-out 2.6s forwards; }
.dcc-tr-name { top: 392px; transform: translateX(-50%); white-space: nowrap; font-size: 30px; font-weight: 800; color: #fff;
  text-shadow: 0 0 14px rgba(96, 165, 250, .9), 0 2px 0 #1e3a8a; opacity: 0; animation: dcc-tr-up .6s cubic-bezier(.2, .9, .3, 1.3) 2.75s forwards; }
.dcc-tr-meta { top: 436px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: #cbd5e1; opacity: 0; animation: dcc-tr-up .5s ease-out 3s forwards; }
.dcc-tr-coins { top: 462px; transform: translateX(-50%); white-space: nowrap; font-size: 16px; font-weight: 700; color: #fde68a;
  text-shadow: 0 0 10px rgba(250, 204, 21, .7); opacity: 0; animation: dcc-tr-up .5s ease-out 3.3s forwards; }
@keyframes dcc-tr-up { from { opacity: 0; margin-top: 10px; } to { opacity: 1; margin-top: 0; } }
@keyframes dcc-tr-fade { to { opacity: 1; } }
.dcc-tr-hint { color: rgba(191, 219, 254, .6); opacity: 0; animation: dcc-hint-in .4s ease 1.5s forwards; }
/* промотка: всё сразу в конечное состояние */
.dcc-trophy-overlay.dcc-tr-done .dcc-tr-stage *, .dcc-trophy-overlay.dcc-tr-done .dcc-tr-stage { animation-delay: 0s !important; animation-duration: .01s !important; }
.dcc-trophy-overlay.dcc-tr-done .dcc-tr-rays { animation: dcc-tr-fade .01s forwards, dcc-rays-spin 18s linear infinite !important; }
.dcc-trophy-overlay.dcc-tr-done .dcc-tr-motes i { animation: dcc-tr-mote 2.6s ease-in var(--d) infinite !important; }
.dcc-trophy-overlay.dcc-tr-done .dcc-tr-hint { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .dcc-trophy-overlay .dcc-tr-stage *, .dcc-trophy-overlay .dcc-tr-stage { animation-delay: 0s !important; animation-duration: .01s !important; animation-iteration-count: 1 !important; }
}

/* v4.46.0: турели Филиппа Фон Пуаро — узкие карточки призыва */
.dcc-hc.dcc-turret { border-color: #8fa3b8; box-shadow: 0 0 10px 2px rgba(143, 163, 184, .45); }
.dcc-hc.dcc-turret .dcc-wardico { background: radial-gradient(circle at 50% 40%, rgba(143, 163, 184, .45), rgba(14, 18, 24, .92)); }
.dcc-hc.dcc-turret.dcc-mega { border-color: #f5b942; box-shadow: 0 0 14px 3px rgba(245, 185, 66, .55); }
.dcc-hc.dcc-turret.dcc-mega .dcc-wardico { background: radial-gradient(circle at 50% 40%, rgba(245, 185, 66, .45), rgba(28, 18, 6, .92)); }

/* ===== v5.6.0: галочка «с предметами» в призыве ===== */
.dnd-cards .dcc-root button.dcc-itemtoggle {
  display: inline-flex; align-items: center; gap: 8px; width: auto; margin: 0 auto 8px; padding: 6px 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(196, 181, 253, .35); border-radius: 10px; color: #eef0ff; font-size: 13px; cursor: pointer;
}
.dnd-cards .dcc-root button.dcc-itemtoggle:hover { border-color: rgba(196, 181, 253, .75); }
.dcc-itemtoggle .dcc-muted { font-size: 11.5px; }
.dcc-itemtoggle-box {
  width: 18px; height: 18px; border-radius: 5px; border: 2px solid rgba(196, 181, 253, .7);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; color: #0c0a14; flex: none;
}
.dcc-itemtoggle-on { border-color: rgba(250, 204, 21, .7) !important; box-shadow: 0 0 12px rgba(250, 204, 21, .18); }
.dcc-itemtoggle-on .dcc-itemtoggle-box { background: #facc15; border-color: #facc15; }
.dcc-summon-hero .dcc-revitem { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 72px; }
.dcc-summon-hero .dcc-revitem .dcc-gi { width: 58%; height: 58%; }

/* ===== v5.6.0: галерея — сетка во всю ширину, карточка героя поверх ===== */
.dcc-galwrap { grid-template-columns: 1fr; }
.dcc-galgrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.dcc-galmodal {
  position: absolute; left: 0; right: 0; top: 0; height: 100%; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(6, 4, 14, .72); backdrop-filter: blur(3px);
}
.dcc-root:has(.dcc-galmodal) { position: relative; }
.dnd-cards .window-content.dcc-noscroll { overflow: hidden; }
@keyframes dcc-galfade { from { opacity: 0; } to { opacity: 1; } }
.dcc-galcardv {
  --rar: #a1a1aa;
  position: relative; display: grid; grid-template-columns: minmax(220px, 38%) minmax(0, 1fr); gap: 0;
  width: min(1040px, 100%); max-height: calc(100% - 8px); overflow: hidden;
  border-radius: 16px; border: 1px solid color-mix(in srgb, var(--rar) 70%, transparent);
  background: linear-gradient(160deg, rgba(28, 22, 46, .97), rgba(14, 11, 26, .98));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 18px 60px rgba(0, 0, 0, .65), 0 0 40px color-mix(in srgb, var(--rar) 25%, transparent);
}
/* v1.1.4: анимация появления — только при открытии, не на каждой перерисовке */
.dcc-galmodal.dcc-anim { animation: dcc-galfade .18s ease-out; }
.dcc-galmodal.dcc-anim .dcc-galcardv { animation: dcc-galpop .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes dcc-galpop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.dnd-cards .dcc-root button.dcc-galx {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px; padding: 0; line-height: 30px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 15px;
}
.dcc-galart { position: relative; min-height: 420px; background: #0c0a14; overflow: hidden; }
.dcc-galart > .dcc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dcc-galart > .dcc-ph2 { display: none; }
.dcc-galart::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 8, 20, .92) 100%), linear-gradient(90deg, transparent 80%, rgba(14, 11, 26, .9) 100%); }
.dcc-galart-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: bold 120px Georgia, serif; color: rgba(255, 255, 255, .18); }
.dcc-galart-foot { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dcc-galart-gem { color: var(--rar); font-weight: bold; letter-spacing: .4px; text-shadow: 0 1px 6px #000; }
.dcc-galart-hp { background: rgba(220, 38, 38, .85); color: #fff; font-weight: bold; padding: 2px 10px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.dcc-galart2 { position: absolute; z-index: 2; top: 12px; left: 12px; width: 74px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--rar); box-shadow: 0 4px 14px rgba(0, 0, 0, .6); }
.dcc-galart2 .dcc-img { width: 100%; height: 100%; object-fit: cover; }
.dcc-galart2 span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; text-align: center; background: rgba(0, 0, 0, .7); color: #eee; }
.dcc-galinfo { color: #e9e6fb; padding: 18px 20px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.45; }
.dcc-galname { font: bold 26px Georgia, "Times New Roman", serif; color: #fff; padding-right: 36px;
  text-shadow: 0 0 18px color-mix(in srgb, var(--rar) 55%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--rar) 45%, transparent); padding-bottom: 6px; }
.dcc-galchips { display: flex; flex-wrap: wrap; gap: 6px; }
.dcc-galchip { padding: 2px 9px; border-radius: 999px; font-size: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #e4e1f7; }
.dcc-galchip-grp { border-color: color-mix(in srgb, var(--rar) 55%, transparent); }
.dcc-gallock { color: #fde68a; font-size: 12.5px; }
.dcc-galquote { font-style: italic; color: #c4b5fd; padding-left: 10px; border-left: 3px solid color-mix(in srgb, var(--rar) 65%, transparent); }
.dcc-galsec { display: flex; flex-direction: column; gap: 6px; }
.dcc-galsech { font-size: 11.5px; font-weight: bold; letter-spacing: .8px; text-transform: uppercase; color: var(--rar); }
.dcc-galpas { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.dcc-galab { padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); border-left: 4px solid #60a5fa; }
.dcc-galab-skill { border-left-color: #a78bfa; }
.dcc-galab-ult { border-left-color: #fbbf24; background: linear-gradient(90deg, rgba(251, 191, 36, .08), rgba(255, 255, 255, .03)); }
.dcc-galabh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dcc-galabh b { color: #fff; font-size: 14px; }
.dcc-galabt { font-size: 10.5px; font-weight: bold; text-transform: uppercase; letter-spacing: .6px; padding: 1px 7px; border-radius: 6px; background: rgba(96, 165, 250, .2); color: #bfdbfe; }
.dcc-galab-skill .dcc-galabt { background: rgba(167, 139, 250, .22); color: #ddd6fe; }
.dcc-galab-ult .dcc-galabt { background: rgba(251, 191, 36, .22); color: #fde68a; }
.dcc-galabc { margin-left: auto; font-size: 11.5px; color: #a7a3c4; }
.dcc-galabd { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: rgba(239, 68, 68, .18); color: #fecaca; }
.dcc-galabdesc { margin-top: 4px; color: #d6d3ea; }
@media (max-width: 760px) {
  .dcc-galcardv { grid-template-columns: 1fr; overflow-y: auto; }
  .dcc-galart { min-height: 300px; }
  .dcc-galinfo { overflow: visible; }
}

/* v5.6.1: метка типа в плавающей подсказке — отдельной строкой, а не впритык к тексту */
#dcc-floattip .dcc-stkind { display: block; font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin: -2px 0 4px; color: #c4b5fd; }
#dcc-floattip[data-kind="control"] .dcc-stkind { color: #d8b4fe; }
#dcc-floattip[data-kind="debuff"] .dcc-stkind { color: #fca5a5; }
#dcc-floattip[data-kind="dot"] .dcc-stkind { color: #fdba74; }
#dcc-floattip[data-kind="buff"] .dcc-stkind { color: #86efac; }
#dcc-floattip[data-kind="special"] .dcc-stkind { color: #fde68a; }

/* v5.6.1: крестик карточки героя — жёсткий размер, чтобы стили кнопок Foundry его не растягивали и не выталкивали за край */
.dnd-cards .dcc-root .dcc-galcardv > button.dcc-galx {
  position: absolute; top: 12px; right: 12px; left: auto; bottom: auto; z-index: 5;
  display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
  width: 32px; height: 32px; min-width: 32px; max-width: 32px; min-height: 32px; max-height: 32px;
  margin: 0; padding: 0; line-height: 1; font-size: 15px; gap: 0; transform: none;
}
.dnd-cards .dcc-root .dcc-galcardv > button.dcc-galx:hover { background: rgba(255, 255, 255, .14); }
.dcc-galinfo > .dcc-galname, .dcc-galinfo > h2:first-child { padding-right: 40px; }
/* v5.6.1: длинные описания (Лойд, София…) — карточка ограничена высотой окна, арт не растягивается, справа своя прокрутка */
.dcc-galmodal { box-sizing: border-box; }
.dcc-galcardv { grid-template-rows: minmax(0, 1fr); height: auto; max-height: calc(100% - 8px); }
.dcc-galart { min-height: 0; }
.dcc-galinfo { min-height: 0; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.dcc-galform { border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 6px 10px; background: rgba(255, 255, 255, .02); }
.dcc-galform > summary { cursor: pointer; list-style: none; }
.dcc-galform > summary::-webkit-details-marker { display: none; }
.dcc-galform > summary::before { content: "▸ "; }
.dcc-galform[open] > summary::before { content: "▾ "; }
.dcc-galform[open] { display: flex; flex-direction: column; gap: 8px; }

/* v5.6.2: полный экран — без скруглений и рамки, поверх всего */
.dnd-cards.dcc-full { border-radius: 0; z-index: 9000 !important; } /* v5.6.3: поверх нижней панели Foundry (хотбар, игроки, чат) */

/* v1.0.1: место под полосу прокрутки всегда зарезервировано — окно не «прыгает» и масштаб не качается */
.dnd-cards .window-content { scrollbar-gutter: stable; }

/* v1.1.0: панель покупки за кубики (зелья, предметы, реликвии, смена героя) */
.dcc-paybox { display: flex; flex-direction: column; gap: 8px; padding: 12px; margin: 6px 0; border-radius: 12px;
  background: linear-gradient(160deg, rgba(124, 58, 237, .16), rgba(20, 16, 36, .9)); border: 1px solid rgba(167, 139, 250, .55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(139, 92, 246, .25); }
.dcc-paybox.dcc-anim { animation: dcc-galpop .18s ease-out; }
.dcc-payhead { display: flex; align-items: center; gap: 10px; }
.dcc-payico { font-size: 26px; line-height: 1; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); }
.dcc-paytxt { display: flex; flex-direction: column; min-width: 0; }
.dcc-paytxt b { font-size: 14px; color: #f5f3ff; }
.dcc-paytxt small { color: #c4b5fd; font-size: 11.5px; line-height: 1.35; }
.dcc-payprice { font-size: 12px; color: #e9e6fb; }
.dcc-paypips { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #c4b5fd; }
.dcc-pip { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid rgba(167, 139, 250, .7); background: rgba(0, 0, 0, .3); transition: background .15s; }
.dcc-pip-on { background: #a78bfa; box-shadow: 0 0 8px rgba(167, 139, 250, .8); }
.dcc-paypips span { margin-left: 6px; }
.dcc-paylbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(233, 230, 251, .6); }
.dcc-paydice { display: flex; flex-wrap: wrap; gap: 6px; }
.dnd-cards .dcc-root button.dcc-paydie { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 6px 10px; border-radius: 10px; font-size: 12px;
  background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .18); color: #eef0ff; transition: transform .12s, border-color .12s, background .12s; }
.dnd-cards .dcc-root button.dcc-paydie .dcc-dico { width: 16px; height: 16px; }
.dnd-cards .dcc-root button.dcc-paydie:hover:not(:disabled) { transform: translateY(-1px); border-color: #a78bfa; }
.dnd-cards .dcc-root button.dcc-paydie-on { background: rgba(167, 139, 250, .28); border-color: #c4b5fd; box-shadow: 0 0 10px rgba(167, 139, 250, .55); }
.dnd-cards .dcc-root button.dcc-paydie-on::after { content: "✓"; font-weight: bold; color: #fff; }
.dnd-cards .dcc-root button.dcc-paydie.dcc-u { border-color: color-mix(in srgb, var(--dcc-ac) 60%, transparent); }
.dnd-cards .dcc-root button.dcc-paydie-no { opacity: .3; filter: grayscale(.8); }
.dnd-cards .dcc-root button.dcc-paydie:disabled:not(.dcc-paydie-no) { opacity: .55; }
/* сколько подходящих кубиков есть под предмет в руке */
.dcc-have { display: inline-flex; align-items: center; flex: none; padding: 1px 7px; border-radius: 9px; font-size: 11px; white-space: nowrap;
  background: rgba(239, 68, 68, .14); border: 1px solid rgba(239, 68, 68, .45); color: #fecaca; }
.dcc-have-ok { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .45); color: #bbf7d0; }
.dcc-handrow { align-items: center; }
/* v1.1.1: кого лечит зелье */
.dcc-paytgts { display: flex; flex-wrap: wrap; gap: 6px; }
.dnd-cards .dcc-root button.dcc-paytgt { width: auto; padding: 4px 10px; border-radius: 9px; font-size: 12px; background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .18); color: #eef0ff; }
.dnd-cards .dcc-root button.dcc-paytgt small { opacity: .7; margin-left: 4px; }
.dnd-cards .dcc-root button.dcc-paytgt-on { background: rgba(52, 211, 153, .18); border-color: rgba(52, 211, 153, .7); box-shadow: 0 0 8px rgba(52, 211, 153, .4); }

/* v1.1.4: карты поддержки в руке — карточки */
.dcc-handlist { gap: 8px; }
.dcc-hcard { --hk: 167, 139, 250; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 9px 10px 9px 12px; border-radius: 12px;
  border: 1px solid rgba(var(--hk), .42); background: linear-gradient(135deg, rgba(var(--hk), .16), rgba(20, 16, 34, .72) 55%), var(--dcc-card, #1c1830);
  box-shadow: inset 3px 0 0 rgba(var(--hk), .85), 0 2px 10px rgba(0, 0, 0, .25); text-align: left; }
.dcc-hk-pot { --hk: 52, 211, 153; }
.dcc-hk-mut { --hk: 192, 132, 252; }
.dcc-hk-gear { --hk: 251, 191, 36; }
.dcc-hk-harm { --hk: 248, 113, 113; }
.dcc-hk-util { --hk: 96, 165, 250; }
.dcc-hcard-poor { filter: saturate(.55); opacity: .85; }
.dcc-hcard-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dcc-hcard-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 18px;
  background: radial-gradient(circle at 35% 30%, rgba(var(--hk), .45), rgba(var(--hk), .12)); border: 1px solid rgba(var(--hk), .55); color: #fff; }
.dcc-hcard-ico svg, .dcc-hcard-ico img { width: 20px; height: 20px; }
.dcc-hcard-tt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.dcc-hcard-tt b { font-size: 13px; color: #f5f3ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcc-hcard-cost { font-size: 11px; color: rgba(var(--hk), 1); opacity: .95; }
.dcc-hcard-d { font-size: 12px; line-height: 1.35; color: #d4d4d8; }
.dcc-hcard-acts { display: flex; flex-wrap: wrap; gap: 5px; }
.dnd-cards .dcc-root .dcc-hcard button.dcc-dose { flex: 1 1 52px; width: auto; padding: 4px 4px; white-space: nowrap; justify-content: center; text-align: center; font-size: 12px; border-color: rgba(var(--hk), .55); background: rgba(var(--hk), .1); }
.dnd-cards .dcc-root .dcc-hcard button.dcc-hcard-use { width: 100%; justify-content: center; text-align: center; padding: 5px 10px; font-size: 12px; font-weight: 600; border-color: rgba(var(--hk), .6); background: rgba(var(--hk), .2); }
.dnd-cards .dcc-root .dcc-hcard button { margin: 0; min-width: 0; min-height: 0; }
.dnd-cards .dcc-root .dcc-hcard button.dcc-hcard-trash { flex: none; align-self: flex-start; box-sizing: border-box; display: inline-grid; place-items: center; place-content: center; justify-content: center; width: 28px; height: 28px; min-height: 0; padding: 0; font-size: 14px; line-height: 1; text-align: center; border-radius: 8px; opacity: .75; } /* v1.1.4: значок по центру кнопки */
.dnd-cards .dcc-root .dcc-hcard button.dcc-hcard-trash:hover:not(:disabled) { opacity: 1; border-color: rgba(248, 113, 113, .7); color: #fca5a5; }
.dnd-cards .dcc-root .dcc-hcard button.dcc-hcard-trash svg { display: block; }
.dnd-cards .dcc-root .dcc-hcard button:disabled { opacity: .45; }

/* v1.1.6: умения в бою — карточки */
.dcc-abils { display: flex; flex-direction: column; gap: 7px; margin: 6px 0 8px; }
.dnd-cards .dcc-root button.dcc-ab { --ak: 167, 139, 250; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; width: 100%; min-height: 0; margin: 0;
  padding: 8px 10px 9px 12px; text-align: left; white-space: normal; border-radius: 11px; border: 1px solid rgba(var(--ak), .45);
  background: linear-gradient(135deg, rgba(var(--ak), .18), rgba(20, 16, 34, .75) 60%); box-shadow: inset 3px 0 0 rgba(var(--ak), .9); color: #ece9f8; line-height: 1.3; }
.dnd-cards .dcc-root button.dcc-ab:hover:not(:disabled) { border-color: rgba(var(--ak), .9); background: linear-gradient(135deg, rgba(var(--ak), .28), rgba(20, 16, 34, .7) 60%); }
.dnd-cards .dcc-root button.dcc-ab:disabled { opacity: .5; filter: saturate(.5); }
.dnd-cards .dcc-root button.dcc-ab-atk { --ak: 251, 146, 60; }
.dnd-cards .dcc-root button.dcc-ab-skill { --ak: 96, 165, 250; }
.dnd-cards .dcc-root button.dcc-ab-ult { --ak: 250, 204, 21; }
.dnd-cards .dcc-root button.dcc-ab-copy { --ak: 45, 212, 191; }
.dnd-cards .dcc-root button.dcc-ab-combo { --ak: 244, 114, 182; }
.dnd-cards .dcc-root button.dcc-ab-opt { --ak: 167, 139, 250; }
.dcc-ab-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dcc-ab-badge { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px;
  background: rgba(var(--ak), .22); border: 1px solid rgba(var(--ak), .6); color: rgb(var(--ak)); }
.dcc-ab-name { font-size: 13.5px; color: #fff; flex: 1 1 auto; min-width: 0; }
.dcc-ab-dmg { flex: none; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 9px; border: 1px solid; }
.dcc-dt-phys { color: #fecaca; border-color: rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .12); }
.dcc-dt-mag { color: #ddd6fe; border-color: rgba(167, 139, 250, .6); background: rgba(167, 139, 250, .14); }
.dcc-dt-pure { color: #fef9c3; border-color: rgba(250, 204, 21, .6); background: rgba(250, 204, 21, .12); }
.dcc-ab-cost { font-size: 11.5px; color: rgba(var(--ak), 1); }
.dcc-ab-note { font-size: 11.5px; color: #fca5a5; }
.dcc-ab-d { font-size: 12px; color: #d4d4d8; }
.dnd-cards .dcc-root button.dcc-abcancel { width: 100%; margin: 0; min-height: 0; padding: 6px 10px; justify-content: center; border-color: rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .1); color: #fecaca; }
/* v1.1.6: «Выбери цель» */
.dcc-pickbanner { --pk: 248, 113, 113; display: flex; align-items: center; gap: 12px; margin: 4px auto 8px; padding: 9px 12px 9px 16px; max-width: 720px; border-radius: 12px;
  border: 1px solid rgba(var(--pk), .7); background: linear-gradient(90deg, rgba(var(--pk), .25), rgba(20, 16, 34, .85)); box-shadow: 0 0 22px rgba(var(--pk), .3); animation: dcc-pbpulse 1.6s ease-in-out infinite; }
.dcc-pb-ally { --pk: 52, 211, 153; }
.dcc-pb-any { --pk: 132, 204, 22; }
.dcc-pb-opt { --pk: 167, 139, 250; }
@keyframes dcc-pbpulse { 50% { box-shadow: 0 0 34px rgba(var(--pk), .5); } }
.dcc-pb-text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.dcc-pb-text b { font-size: 15px; color: #fff; }
.dcc-pb-text span { font-size: 12px; color: #e4e4e7; }
.dnd-cards .dcc-root button.dcc-pb-cancel { flex: none; width: auto; margin: 0; min-height: 0; padding: 6px 12px; gap: 6px; justify-content: center; border-color: rgba(255, 255, 255, .35); }
.dcc-pb-cancel kbd { font: 10px/1 inherit; padding: 2px 4px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .35); opacity: .8; }
.dcc-picking .dcc-hc:not(.dcc-pick):not(.dcc-dead) { filter: grayscale(.7) brightness(.5); transition: filter .2s; }
.dcc-picking:not(.dcc-picking-opt) .dcc-hc.dcc-pick { outline: 3px solid rgb(var(--pk, 248, 113, 113)); outline-offset: -3px; box-shadow: 0 0 22px rgba(var(--pk, 248, 113, 113), .55); animation: dcc-pickglow 1.2s ease-in-out infinite; }
.dcc-picking-foe { --pk: 248, 113, 113; }
.dcc-picking-ally { --pk: 52, 211, 153; }
.dcc-picking-any { --pk: 132, 204, 22; }
.dcc-picking-opt .dcc-hc { filter: none !important; }
@keyframes dcc-pickglow { 50% { box-shadow: 0 0 34px rgba(var(--pk, 248, 113, 113), .8); } }
/* v1.1.8: синергический ультимейт — отдельная яркая карточка */
.dnd-cards .dcc-root button.dcc-ab-combo { background: linear-gradient(120deg, rgba(244, 114, 182, .22), rgba(250, 204, 21, .12) 55%, rgba(20, 16, 34, .8)); }
.dnd-cards .dcc-root button.dcc-ab-combo:not(:disabled) { border-color: rgba(250, 204, 21, .8); animation: dcc-combo-glow 1.4s ease-in-out infinite; }
@keyframes dcc-combo-glow { 0%, 100% { box-shadow: inset 3px 0 0 rgba(244, 114, 182, .9), 0 0 10px rgba(244, 114, 182, .35); } 50% { box-shadow: inset 3px 0 0 rgba(250, 204, 21, .95), 0 0 24px rgba(250, 204, 21, .55); } }

/* v1.2.1: экран боя не листается целиком — поле с героями стоит на месте (VFX не съезжают).
   v1.4.0: листается вся боковая вкладка целиком (кубики, способности, расходники, журнал),
   а не только список расходников. height:0 + min-height:100% — панель равна по высоте полю. */
.dcc-tbody { grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; }
.dcc-tbody > .dcc-side {
  height: 0; min-height: 100%; display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.dcc-tbody > .dcc-side > * { flex: 0 0 auto; }
.dcc-tbody > .dcc-side > .dcc-log { max-height: 110px; margin-top: 6px; overflow-y: auto; overscroll-behavior: contain; }

/* ============ v1.3.0: экран выбора отряда — ячейки 1–4, фильтры, компактный список ============ */
.dcc-pk { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; margin-top: 6px; }
.dcc-pkmain { min-width: 0; }
.dcc-pkside { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 8px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; }
.dcc-pkside .dcc-box { margin: 0; }
.dcc-pkdetail { font-size: 12.5px; line-height: 1.45; }

.dcc-pksquad { position: sticky; top: 0; z-index: 5; border-radius: 16px; padding: 10px 12px; margin-bottom: 10px;
  background: linear-gradient(160deg, rgba(30, 24, 48, .96), rgba(18, 14, 30, .96)); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.dcc-pksquadhd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dcc-pksquadhd > b { font-size: 15px; color: #f5f3ff; }
.dcc-pkhint { color: #b9b4d6; font-size: 12px; flex: 1; min-width: 200px; }
.dcc-pkdice { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #052e1a; background: #34d399; }
.dcc-pkdice-bad { background: #f87171; color: #2a0606; }

.dcc-pkslots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dnd-cards .dcc-root button.dcc-pkslot {
  position: relative; display: block; height: 128px; padding: 0; margin: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #15111f; border: 2px solid rgba(255, 255, 255, .14); color: #f5f3ff; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dnd-cards .dcc-root button.dcc-pkslot:hover { border-color: rgba(196, 181, 253, .7); transform: translateY(-1px); }
.dnd-cards .dcc-root button.dcc-pkslot-empty { border-style: dashed; background: rgba(255, 255, 255, .03); }
.dnd-cards .dcc-root button.dcc-pkslot-target { border-color: #fbbf24; border-style: solid; box-shadow: 0 0 0 3px rgba(251, 191, 36, .25), 0 0 22px rgba(251, 191, 36, .35); animation: dcc-pkpulse 1.4s ease-in-out infinite; }
.dnd-cards .dcc-root button.dcc-pkslot.dcc-pk-over { border-color: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .3); }
.dcc-pk-dragging .dcc-pkslot { border-style: dashed; }
@keyframes dcc-pkpulse { 50% { box-shadow: 0 0 0 5px rgba(251, 191, 36, .15), 0 0 30px rgba(251, 191, 36, .45); } }
.dcc-pkslot > img.dcc-img, .dcc-pkslot > .dcc-ph2 { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.dcc-pkslot > .dcc-ph2 { display: grid; place-items: center; font-size: 42px; font-weight: 800; color: rgba(255, 255, 255, .35); }
.dcc-pkslot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0, transparent 30%, transparent 45%, rgba(0, 0, 0, .9)); pointer-events: none; }
.dcc-pkslot-empty::after { display: none; }
.dcc-pkslotn { position: absolute; z-index: 2; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: #1c1405; background: #fbbf24; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.dcc-pkslot-empty .dcc-pkslotn { background: rgba(255, 255, 255, .16); color: #e9e6fb; }
.dcc-pkslotplus { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 300; color: rgba(255, 255, 255, .3); }
.dcc-pkslot-target .dcc-pkslotplus { color: #fbbf24; }
.dcc-pkslotinfo { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 7px; display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
.dcc-pkslotinfo > b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px #000; }
.dcc-pkslotinfo > small { grid-column: 1 / -1; font-size: 11px; color: #d4d0ea; text-shadow: 0 1px 2px #000; }
.dcc-pkslotx { position: absolute; z-index: 2; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; background: rgba(0, 0, 0, .6); color: #fff; opacity: 0; transition: opacity .15s; }
.dcc-pkslot:hover .dcc-pkslotx { opacity: 1; }
.dcc-pkslotpos { position: absolute; z-index: 2; top: 9px; left: 36px; font-size: 10px; letter-spacing: .02em; color: rgba(233, 230, 251, .75); text-shadow: 0 1px 2px #000; }
.dcc-pkslot:not(.dcc-pkslot-empty) .dcc-pkslotpos { display: none; }
.dcc-pkcls { display: inline-block; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; opacity: .9; }
.dcc-pkfoot { display: flex; align-items: center; gap: 12px; margin-top: 9px; flex-wrap: wrap; }
.dcc-pkfoot > .dcc-muted { flex: 1; min-width: 220px; font-size: 11.5px; }
.dcc-pkgo { display: flex; gap: 8px; margin-left: auto; }
.dnd-cards .dcc-root .dcc-pkgo > button { width: auto; min-width: 120px; padding: 0 16px; min-height: 36px; }

.dcc-pkfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 8px; }
.dnd-cards .dcc-root button.dcc-pkchip { width: auto; min-height: 28px; padding: 0 10px; margin: 0; display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; font-size: 12px; color: #d9d5f2; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.dnd-cards .dcc-root button.dcc-pkchip:hover { background: rgba(255, 255, 255, .1); }
.dnd-cards .dcc-root button.dcc-pkchip.dcc-on { background: rgba(139, 92, 246, .35); border-color: #a78bfa; color: #fff; }
.dcc-pkchip .dcc-gem { position: static; width: auto; height: auto; font-size: 11px; background: none; box-shadow: none; padding: 0; }
.dcc-pksep { width: 1px; height: 18px; background: rgba(255, 255, 255, .14); margin: 0 2px; }

.dcc-pkgrid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; margin-top: 0; }
.dcc-pkgrid > .dcc-hc .dcc-nm { font-size: 12.5px; }
.dcc-pkgrid > .dcc-hc.dcc-pkfocus { outline: 2px solid rgba(196, 181, 253, .8); outline-offset: 2px; }
.dcc-pkgrid > .dcc-hc[draggable="true"] { cursor: grab; }
.dcc-pkbadge { position: absolute; z-index: 4; left: 5px; right: 5px; bottom: 44px; padding: 2px 6px; border-radius: 7px; font-size: 10.5px; font-weight: 700; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.dcc-pkbadge-syn { background: rgba(14, 116, 144, .88); color: #e0f7ff; }
.dcc-pkbadge-dice { background: rgba(5, 150, 105, .9); color: #ecfdf5; left: auto; right: 5px; bottom: auto; top: 26px; }
.dcc-pkbadge-dice.dcc-bad { background: rgba(185, 28, 28, .9); color: #fff1f1; }
.dcc-pkbadge-syn + .dcc-pkbadge-dice { top: 26px; }

/* v1.4.0: синергии групп и парные ульты — раздельно */
.dcc-synrow .dcc-syncap { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .65; margin-bottom: 2px; }
.dcc-synrow + .dcc-synrow { margin-top: 4px; }
.dcc-ultok { color: #fbbf24; }
.dcc-hutable { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
.dcc-hutable td { padding: 2px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
.dcc-hutable td:nth-child(2), .dcc-hutable td:nth-child(3) { white-space: nowrap; text-align: right; }
.dcc-sortbar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dcc-sortbar > .dcc-muted { font-size: 11px; margin-right: 2px; }
.dcc-galtools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dcc-galtools > button { flex: 0 0 auto; width: auto; }
/* v1.4.2: значки редкости и фильтры больше не просвечивают сквозь закреплённый отряд при прокрутке списка */
.dnd-cards .dcc-root .dcc-pksquad.dcc-glass { z-index: 30; isolation: isolate; background: linear-gradient(160deg, rgb(30, 24, 48), rgb(18, 14, 30)); backdrop-filter: none; }
.dnd-cards .dcc-root .dcc-pkslot-empty { background: rgb(26, 21, 40); }
/* v1.4.4: шаг «Предметы в бой» после выбора отряда */
.dcc-relicstep { max-width: 760px; margin: 12px auto; padding: 14px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.dcc-relicstep .dcc-relicbox { margin: 0; }
.dcc-relicteam { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dcc-relicteam .dcc-draftslot { width: 92px; height: 118px; }
.dcc-relicgo { display: flex; justify-content: flex-end; gap: 8px; }

/* v1.4.5: после боя экран перерисовывается (монеты, статистика, аккаунт) — анимации поля
   (кубики, пилюля раунда, пульс активного героя) больше не перезапускаются под оверлеем */
.dnd-cards .dcc-root.dcc-over *:not(.dcc-confetti):not(.dcc-win):not(.dcc-coinpulse) { animation: none !important; }

/* v1.4.9: рандом-драфт в рейтинговом бою */
.dcc-draftmid .dcc-draftrnd {
  margin-top: 4px; padding: 5px 12px; height: auto; width: auto; flex: 0 0 auto;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  color: #fff7e0; border: 1px solid rgba(251, 191, 36, .75); border-radius: 999px;
  background: linear-gradient(180deg, rgba(120, 72, 10, .9), rgba(70, 38, 6, .92));
  box-shadow: 0 0 12px rgba(251, 191, 36, .35); cursor: pointer;
}
.dcc-draftmid .dcc-draftrnd:hover { filter: brightness(1.2); box-shadow: 0 0 18px rgba(251, 191, 36, .6); }
.dcc-rndtag {
  display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fde68a;
  background: rgba(251, 191, 36, .16); border: 1px solid rgba(251, 191, 36, .5);
}
