/* Свечки на деп — страница «Алтарь депов» (встроена в оболочку приложения) */

.content:has(#content-dep-candles) {
  padding: var(--space-4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.content:has(#content-dep-candles) #content-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#content-dep-candles.content-page {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.dep-altar-page {
  --da-bg: #07070b;
  --da-panel: rgba(18, 18, 26, 0.72);
  --da-line: rgba(255, 255, 255, 0.08);
  --da-gold: #e8be76;
  --da-violet: #8d5cff;
  --da-pink: #ff4fb8;
  --da-text: #f6f0e8;
  --da-muted: #9d96a8;
  --da-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --da-radius: 22px;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 16px;
  box-sizing: border-box;
  max-height: calc(100dvh - 52px);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg, 12px);
  background:
    radial-gradient(circle at 50% 0%, rgba(232, 190, 118, 0.14), transparent 28%),
    radial-gradient(circle at 15% 22%, rgba(141, 92, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255, 79, 184, 0.08), transparent 28%),
    linear-gradient(180deg, #08080c 0%, #050507 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dep-altar-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 24%, black, transparent 72%);
  opacity: 0.55;
}

.dep-altar-toolbar {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  padding: 4px 2px 14px;
}

.dep-altar-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dep-altar-toolbar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dep-altar-loading {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--da-muted);
}

.dep-altar-error-inline {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(180, 60, 80, 0.15);
  border: 1px solid rgba(255, 120, 120, 0.25);
  color: #ffd0d4;
  font-size: 13px;
}

.dep-altar-pill {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--da-line);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.dep-altar-pill b {
  color: var(--da-gold);
  font-weight: 800;
}

.dep-altar-pill--muted b {
  color: rgba(230, 226, 255, 0.95);
}

.dep-altar-day {
  font-size: 11px;
  color: var(--da-muted);
}

.dep-altar-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(260px, 1fr) minmax(268px, 380px);
  gap: 16px;
  align-items: stretch;
  padding: 0 2px;
}

.dep-altar-side {
  background: linear-gradient(180deg, var(--da-panel), rgba(12, 12, 18, 0.62));
  border: 1px solid var(--da-line);
  border-radius: var(--da-radius);
  box-shadow: var(--da-shadow);
  padding: 12px 10px;
  backdrop-filter: blur(14px);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dep-altar-side-head {
  margin-bottom: 8px;
  flex-shrink: 0;
}

.dep-altar-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--da-gold);
  margin-bottom: 4px;
}

.dep-altar-eyebrow--gold {
  letter-spacing: 0.22em;
}

.dep-altar-side-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--da-text);
}

.dep-altar-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: visible;
  overflow-y: auto;
  padding: 2px 0 4px;
}

.dep-altar-candle-card {
  box-sizing: border-box;
  aspect-ratio: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 6px 4px 5px;
  border-radius: 12px;
  border: 1px solid var(--da-line);
  background: rgba(255, 255, 255, 0.045);
  cursor: grab;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
  position: relative;
  user-select: none;
}

.dep-altar-candle-card:hover {
  transform: translateX(2px);
  border-color: rgba(232, 190, 118, 0.26);
  background: rgba(255, 255, 255, 0.06);
}

.dep-altar-candle-card:active {
  cursor: grabbing;
}

.dep-altar-candle-card.dep-altar-candle-card--busy {
  opacity: 0.55;
  pointer-events: none;
}

.dep-altar-candle-copy {
  width: 100%;
  flex-shrink: 0;
}

.dep-altar-candle-copy strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
  color: var(--da-text);
}

.dep-altar-candle--picker {
  flex-shrink: 0;
  width: 34px;
  height: 66px;
  transform: scale(0.62);
  transform-origin: bottom center;
  margin-top: auto;
}

/* Свеча (иконка): пламя ::before, знак ::after */
.dep-altar-candle {
  width: 34px;
  height: 66px;
  border-radius: 12px 12px 7px 7px;
  position: relative;
  margin: 0 auto;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.74), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), transparent 22%, rgba(0, 0, 0, 0.18) 74%),
    var(--wax);
  box-shadow: inset -6px 0 12px rgba(0, 0, 0, 0.15), 0 0 18px var(--glow);
}

.dep-altar-candle::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 13px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 42% 25%, #fff8d8 0 18%, #ffd36c 36%, #ff8a31 68%, transparent 100%);
  filter: drop-shadow(0 0 10px rgba(255, 170, 65, 0.85));
  animation: dep-altar-flame 0.9s ease-in-out infinite alternate;
}

.dep-altar-candle::after {
  content: attr(data-mark);
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.76);
}

@keyframes dep-altar-flame {
  from {
    transform: translateX(-50%) scale(0.96) rotate(-2deg);
  }
  to {
    transform: translateX(-50%) scale(1.06) rotate(2deg);
  }
}

.dep-altar-wax--dep {
  --wax: linear-gradient(#c8ffd8, #1faa62 48%, #063820);
  --glow: rgba(55, 235, 147, 0.42);
}

.dep-altar-wax--diza {
  --wax: linear-gradient(#fff8d0, #f5d547 46%, #9a740c);
  --glow: rgba(245, 213, 71, 0.48);
}

.dep-altar-wax--ban {
  --wax: linear-gradient(#ffb8c8, #d62839 48%, #4a0810);
  --glow: rgba(255, 79, 112, 0.42);
}

.dep-altar-wax--romi {
  --wax: linear-gradient(#c8e8ff, #2d7cfd 48%, #10286e);
  --glow: rgba(70, 140, 255, 0.48);
}

.dep-altar-wax--hook {
  --wax: linear-gradient(#f5d4ff, #9333ea 46%, #3c1366);
  --glow: rgba(180, 90, 255, 0.55);
}

.dep-altar-wax--trust {
  --wax: linear-gradient(#ece8ff, #a894e8 48%, #4b3f72);
  --glow: rgba(168, 148, 232, 0.42);
}

.dep-altar-wax--orange {
  --wax: linear-gradient(#ffe8cc, #f97316 46%, #7c2d12);
  --glow: rgba(251, 146, 60, 0.5);
}

.dep-altar-wax--scale {
  --wax: linear-gradient(rgb(206, 255, 253), rgb(3, 244, 252) 44%, rgb(14, 80, 85));
  --glow: rgba(3, 244, 252, 0.42);
}

.dep-altar-wax--quality {
  --wax: linear-gradient(#eaf3ff, #69b6ff 46%, #2a4b7a);
  --glow: rgba(105, 182, 255, 0.48);
}

.dep-altar-wax--hands {
  --wax: linear-gradient(#f3e8ff, #be73ff 45%, #552a7a);
  --glow: rgba(190, 115, 255, 0.45);
}

.dep-altar-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dep-altar-card {
  flex: 1;
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid rgba(232, 190, 118, 0.22);
  background:
    radial-gradient(circle at 50% 18%, rgba(232, 190, 118, 0.14), transparent 22%),
    radial-gradient(circle at 50% 72%, rgba(141, 92, 255, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(17, 16, 24, 0.82), rgba(7, 7, 10, 0.92));
  box-shadow: var(--da-shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.dep-altar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.03), transparent 34%);
}

.dep-altar-hero {
  text-align: center;
  padding: 12px 16px 0;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.dep-altar-hero-title {
  margin: 4px 0 0;
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--da-text);
}

.dep-altar-scene {
  position: relative;
  flex: 1;
  min-height: 280px;
  margin-top: 4px;
}

.dep-altar-halo {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(520px, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 190, 118, 0.14), rgba(141, 92, 255, 0.07) 38%, transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.dep-altar-ring {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: min(380px, 72%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(232, 190, 118, 0.26);
  box-shadow: inset 0 0 36px rgba(232, 190, 118, 0.05);
  pointer-events: none;
}

.dep-altar-ring::before,
.dep-altar-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dep-altar-ring::after {
  inset: 62px;
  border-color: rgba(232, 190, 118, 0.14);
}

.dep-altar-center-brand {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 6;
}

.dep-altar-center-brand img {
  display: block;
  width: clamp(112px, 22vw, 168px);
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.55));
}

.dep-altar-base {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 620px);
  height: clamp(120px, 22vh, 180px);
  border-radius: 50%;
  border: 1px solid rgba(232, 190, 118, 0.32);
  background:
    radial-gradient(circle at 50% 36%, rgba(232, 190, 118, 0.14), transparent 34%),
    radial-gradient(circle at 50% 72%, rgba(141, 92, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(31, 27, 39, 0.92), rgba(7, 7, 10, 0.96));
  box-shadow: inset 0 0 40px rgba(232, 190, 118, 0.06), 0 22px 70px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.dep-altar-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: 0;
  cursor: crosshair;
}

.dep-altar-drop-overlay.dep-altar-drop-overlay--hot {
  box-shadow: inset 0 0 0 2px rgba(232, 190, 118, 0.35);
  background: radial-gradient(
    ellipse 70% 55% at 50% 55%,
    rgba(232, 190, 118, 0.08),
    rgba(141, 92, 255, 0.05),
    transparent 68%
  );
}

.dep-altar-placed-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  contain: layout style;
}

.dep-altar-page--many .dep-altar-placed-candle .dep-altar-candle::before {
  animation: none;
  filter: none;
}

.dep-altar-page--many .dep-altar-placed-candle.dep-altar-placed-candle--pop {
  animation: none;
}

.dep-altar-page--many .dep-altar-placed-candle .dep-altar-candle {
  box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.18), 0 0 5px var(--glow);
}

.dep-altar-placed-candle {
  position: absolute;
  transform: translate(-50%, -100%);
}

.dep-altar-placed-candle--pop {
  animation: dep-altar-appear 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dep-altar-placed-candle .dep-altar-candle {
  width: 14px;
  height: 27px;
  border-radius: 6px 6px 4px 4px;
  box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.16), 0 0 10px var(--glow);
}

.dep-altar-placed-candle .dep-altar-candle::before {
  top: -11px;
  width: 6px;
  height: 11px;
}

.dep-altar-placed-candle .dep-altar-candle::after {
  font-size: 6px;
  top: 11px;
}

/* То же расположение и размер, что у свечки на алтаре, при перетаскивании */
.dep-altar-candle--ghost-altar {
  width: 14px;
  height: 27px;
  border-radius: 6px 6px 4px 4px;
  box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.16), 0 0 10px var(--glow);
}

.dep-altar-candle--ghost-altar::before {
  top: -11px;
  width: 6px;
  height: 11px;
}

.dep-altar-candle--ghost-altar::after {
  font-size: 6px;
  top: 11px;
}

@keyframes dep-altar-appear {
  from {
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.72) translateY(12px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
    filter: blur(0);
  }
}

.dep-altar-bottom-info {
  position: relative;
  z-index: 12;
  flex-shrink: 0;
  margin-top: auto;
  padding: 12px 14px 16px;
  display: flex;
  justify-content: center;
}

.dep-altar-bottom-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--da-line);
  background: rgba(0, 0, 0, 0.28);
  color: #d8d0dd;
  font-size: 12px;
  backdrop-filter: blur(12px);
}

.dep-altar-meta {
  background: linear-gradient(180deg, var(--da-panel), rgba(12, 12, 18, 0.62));
  border: 1px solid var(--da-line);
  border-radius: var(--da-radius);
  box-shadow: var(--da-shadow);
  padding: 14px;
  backdrop-filter: blur(14px);
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.dep-altar-meta-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(230, 226, 255, 0.92);
}

.dep-altar-meta-block {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.dep-altar-meta-block--table {
  flex: 0 0 auto;
}

.dep-altar-meta-block--feed {
  flex: 1 1 auto;
  min-height: 96px;
  display: flex;
  flex-direction: column;
}

.dep-altar-meta-block--table .dep-altar-table-wrap {
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dep-altar-table-wrap {
  overflow: visible;
  max-height: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dep-candles-table {
  font-size: 11px;
  table-layout: fixed;
  width: 100%;
}

/* Глобальный style.css задаёт .admin-table { min-width: 800px } — в узком блоке «Участники»
   обрезаются колонки «Сегодня» и «Всего». */
#content-dep-candles .dep-candles-table.admin-table {
  min-width: 0;
  width: 100%;
}

.dep-candles-table th,
.dep-candles-table td {
  padding: 5px 6px;
  vertical-align: middle;
}

.dep-altar-meta-block--table .dep-candles-table {
  width: 100%;
}

.dep-altar-meta-block--table .dep-candles-table thead th:nth-child(1) {
  width: 56%;
  min-width: 0;
}

.dep-altar-meta-block--table .dep-candles-table thead th:nth-child(2),
.dep-altar-meta-block--table .dep-candles-table thead th:nth-child(3) {
  width: 22%;
  min-width: 58px;
  max-width: 88px;
  white-space: nowrap;
  text-align: right;
}

.dep-altar-meta-block--table .dep-candles-table td:nth-child(2),
.dep-altar-meta-block--table .dep-candles-table td:nth-child(3) {
  white-space: nowrap;
}

.dep-candles-table td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 0;
}

.dep-candles-table td:nth-child(2),
.dep-candles-table td:nth-child(3) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dep-candles-th-stack {
  text-align: center;
  line-height: 1.2;
}

.dep-candles-th-stack__main {
  display: block;
  font-weight: 700;
}

.dep-candles-th-stack__sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.75;
}

.dep-candles-participant {
  min-width: 0;
}

.dep-candles-num {
  font-weight: 700;
}

.dep-candles-muted {
  color: rgba(180, 184, 204, 0.85);
}

.dep-candles-cell .dep-candles-emoji {
  font-style: normal;
  margin-right: 2px;
}

.dep-candles-cell .dep-candles-nick {
  font-weight: 600;
  color: rgba(240, 242, 255, 0.95);
}

.dep-candles-cell .dep-candles-paren {
  color: rgba(180, 184, 204, 0.85);
  font-weight: 400;
}

.dep-altar-feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dep-altar-feed-list:empty::after {
  content: "Пока пусто — поставьте свечку.";
  display: block;
  padding: 10px;
  font-size: 12px;
  color: var(--da-muted);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.dep-altar-feed-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
}

.dep-altar-feed-item--dep {
  border-left-color: #2ee6a0;
  background: rgba(46, 230, 160, 0.08);
}

.dep-altar-feed-item--diza {
  border-left-color: #f2d54b;
  background: rgba(242, 213, 75, 0.1);
}

.dep-altar-feed-item--ban {
  border-left-color: #ff5a6e;
  background: rgba(255, 90, 110, 0.08);
}

.dep-altar-feed-item--romi {
  border-left-color: #4f9bff;
  background: rgba(79, 155, 255, 0.1);
}

.dep-altar-feed-item--hook {
  border-left-color: #c084fc;
  background: rgba(147, 51, 234, 0.14);
}

.dep-altar-feed-item--trust {
  border-left-color: #c4b5f8;
  background: rgba(196, 181, 248, 0.1);
}

.dep-altar-feed-item--orange {
  border-left-color: #fb923c;
  background: rgba(251, 146, 60, 0.1);
}

.dep-altar-feed-item--scale {
  border-left-color: #22eef8;
  background: rgba(3, 244, 252, 0.08);
}

.dep-altar-feed-item--quality {
  border-left-color: #69b6ff;
  background: rgba(105, 182, 255, 0.1);
}

.dep-altar-feed-item--hands {
  border-left-color: #be73ff;
  background: rgba(190, 115, 255, 0.09);
}

.dep-altar-feed-item--dep .dep-altar-feed-item__wax {
  color: #c6ffe8;
}

.dep-altar-feed-item--diza .dep-altar-feed-item__wax {
  color: #fff6c2;
}

.dep-altar-feed-item--ban .dep-altar-feed-item__wax {
  color: #ffc8cf;
}

.dep-altar-feed-item--romi .dep-altar-feed-item__wax {
  color: #cfe6ff;
}

.dep-altar-feed-item--hook .dep-altar-feed-item__wax {
  color: #e9d5ff;
}

.dep-altar-feed-item--trust .dep-altar-feed-item__wax {
  color: #ebe5ff;
}

.dep-altar-feed-item--orange .dep-altar-feed-item__wax {
  color: #ffedd5;
}

.dep-altar-feed-item--scale .dep-altar-feed-item__wax {
  color: #c8fdfc;
}

.dep-altar-feed-item--quality .dep-altar-feed-item__wax {
  color: #d4e8ff;
}

.dep-altar-feed-item--hands .dep-altar-feed-item__wax {
  color: #f0e0ff;
}

.dep-altar-feed-item time {
  font-variant-numeric: tabular-nums;
  color: var(--da-muted);
}

.dep-altar-feed-item__main {
  color: rgba(240, 242, 255, 0.96);
  line-height: 1.35;
}

.dep-altar-feed-item__wax {
  display: inline-block;
  margin-left: 6px;
  font-weight: 800;
}

.dep-altar-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  min-width: min(380px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(16, 15, 22, 0.92);
  border: 1px solid rgba(232, 190, 118, 0.28);
  color: #fff3dc;
  text-align: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-weight: 700;
  font-size: 13px;
  z-index: 2147483640;
}

.dep-altar-toast.dep-altar-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dep-altar-ghost {
  position: fixed;
  z-index: 2147483641;
  left: 0;
  top: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.4));
}

.dep-altar-ghost:not(.hidden) .dep-altar-candle--ghost-altar {
  animation: dep-altar-flame 0.85s ease-in-out infinite alternate;
}

.dep-altar-ghost .dep-altar-candle.dep-altar-candle--ghost-altar {
  transform: none;
}

.dep-altar-trail {
  position: fixed;
  z-index: 2147483638;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--da-gold);
  box-shadow: 0 0 12px rgba(232, 190, 118, 0.72);
  animation: dep-altar-trail 0.52s ease-out forwards;
}

@keyframes dep-altar-trail {
  to {
    opacity: 0;
    transform: scale(0.25);
  }
}

.dep-altar-particle {
  position: fixed;
  z-index: 2147483637;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  animation: dep-altar-burst 0.78s ease-out forwards;
}

@keyframes dep-altar-burst {
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(0.16);
  }
}

.dep-altar-page.dep-altar-page--pulse .dep-altar-toolbar__pills {
  animation: dep-altar-pulse 0.55s ease-out;
}

@keyframes dep-altar-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .dep-altar-wrap {
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 14px;
  }

  .dep-altar-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .dep-altar-meta-block {
    flex: 1 1 min(340px, 100%);
  }

  .dep-altar-meta-block--feed {
    min-height: 160px;
  }
}

@media (max-width: 720px) {
  .dep-altar-wrap {
    grid-template-columns: 1fr;
  }

  .dep-altar-side {
    order: 2;
  }

  .dep-altar-main {
    order: 1;
  }

  .dep-altar-meta {
    order: 3;
    flex-direction: column;
  }

  .dep-altar-card {
    min-height: 380px;
  }

  /* Сетка 2× уже задана в базовых стилях */
}

@media (max-width: 520px) {
  .dep-altar-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dep-altar-toolbar__row {
    flex-direction: column;
    align-items: flex-start;
  }
}
