/* ==========================================================================
   Очередь: оформление в стиле лидерборда (подиумные карточки, цветные полосы,
   свечение сверху, крупные иконки в «слотах»). Подключается ПОСЛЕДНИМ в queue.html.
   ========================================================================== */
html body.mc-page:not(.x) { --qc-on: #3fbf3f; --qc-off: #e04444; }

/* ---------- Шапка страницы ---------- */
html body.mc-page:not(.x) .q-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
html body.mc-page:not(.x) .q-pagehead h1 { margin: 0; }
html body.mc-page:not(.x) .q-pagehead p { margin: 4px 0 0; }
html body.mc-page:not(.x) .q-summary { display: flex; gap: 10px; flex-wrap: wrap; }
html body.mc-page:not(.x) .q-summary .chip {
  padding: 6px 12px; font-size: 16px; color: var(--mc-text); background: var(--c-1f1f1f); box-shadow: var(--mc-slot);
}
html body.mc-page:not(.x) .q-summary .chip b { color: #fff; font-weight: 400; margin-right: 6px; }

/* ---------- Список режимов: сетка карточек ---------- */
html body.mc-page:not(.x) .qlist.qgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 26px;
}
html body.mc-page:not(.x) .qgrid .qlist-row {
  --pc: var(--qc-off);
  position: relative; overflow: hidden; margin: 0;
  flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 10px;
  padding: 30px 18px 24px; min-height: 230px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 14%, #2b2b2b) 0%, #2b2b2b 62%);
  box-shadow: var(--mc-bevel), 0 14px 34px rgba(0, 0, 0, .4);
  transition: transform .12s steps(3);
}
html body.mc-page:not(.x) .qgrid .qlist-row.is-on { --pc: var(--qc-on); }
html body.mc-page:not(.x) .qgrid .qlist-row:hover { transform: translateY(-4px); background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 20%, #303030) 0%, #303030 62%); }
html body.mc-page:not(.x) .qgrid .qlist-row::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--pc); z-index: 1; }
html body.mc-page:not(.x) .qgrid .qlist-row::after {
  content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 110px; pointer-events: none;
  background: radial-gradient(ellipse 70% 100% at 50% 0, color-mix(in srgb, var(--pc) 24%, transparent), transparent 75%);
}
html body.mc-page:not(.x) .qgrid .qlist-row .icon {
  position: relative; z-index: 2; width: 84px; height: 84px; margin-bottom: 2px;
}
html body.mc-page:not(.x) .qgrid .qlist-row .icon::before {   /* ореол за иконкой */
  content: ''; position: absolute; inset: -18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pc) 38%, transparent) 0%, transparent 68%);
  animation: qp-glow 3.4s ease-in-out infinite;
}
html body.mc-page:not(.x) .qgrid .qlist-row .icon .mc-sprite { width: 52px; height: 52px; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .5)); }
html body.mc-page:not(.x) .qgrid .qlist-row .info { position: relative; z-index: 2; flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
html body.mc-page:not(.x) .qgrid .qlist-row .info .name { font-size: 22px; }
html body.mc-page:not(.x) .qgrid .qlist-row .info .stats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 0; font-size: 0; }
html body.mc-page:not(.x) .qgrid .qlist-row .stats .chip {
  font-size: 16px; padding: 2px 8px; color: var(--mc-text); background: var(--c-1f1f1f); box-shadow: var(--mc-slot);
}
html body.mc-page:not(.x) .qgrid .qlist-row .stats .chip b { color: #fff; font-weight: 400; margin-right: 4px; }
html body.mc-page:not(.x) .qgrid .qlist-row .dot { width: 10px; height: 10px; }
@keyframes qp-glow { 0%, 100% { opacity: .75; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }

/* ---------- Детальный вид очереди ---------- */
html body.mc-page:not(.x) .q-sidebar > .card { position: relative; overflow: hidden; padding: 26px 20px 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--qc-on) 12%, #2b2b2b) 0%, #2b2b2b 60%); }
html body.mc-page:not(.x) .q-sidebar > .card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--qc-on); }
html body.mc-page:not(.x) .q-sidebar > .card:has(.q-status-badge.closed)::before { background: var(--qc-off); }
html body.mc-page:not(.x) .q-sidebar > .card:has(.q-status-badge.closed) { background: linear-gradient(180deg, color-mix(in srgb, var(--qc-off) 12%, #2b2b2b) 0%, #2b2b2b 60%); }
html body.mc-page:not(.x) .q-head { gap: 16px; }
html body.mc-page:not(.x) .q-head .icon { width: 72px; height: 72px; }
html body.mc-page:not(.x) .q-head .icon .mc-sprite { width: 44px !important; height: 44px !important; filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, .5)); }
html body.mc-page:not(.x) .q-stat-box { padding: 12px 6px; text-align: center; }
html body.mc-page:not(.x) .q-stat-box .n { font-size: 28px; }
html body.mc-page:not(.x) .q-section { position: relative; overflow: hidden; padding-top: 20px; }
html body.mc-page:not(.x) .q-section::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #5a5a5a; }
html body.mc-page:not(.x) .q-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
html body.mc-page:not(.x) .q-row .pos { color: #f5c518; }
html body.mc-page:not(.x) .q-row:nth-child(n+3) .pos { color: #fff; }
html body.mc-page:not(.x) .q-row.mine { box-shadow: inset 4px 0 0 #f5c518; }
html body.mc-page:not(.x) .session-panel { position: relative; overflow: hidden; padding-top: 22px; background: linear-gradient(180deg, #303030 0%, #2b2b2b 40%); }
html body.mc-page:not(.x) .session-panel::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #8a8a8a; }
html body.mc-page:not(.x) .session-empty-icon { font-size: 56px; opacity: .55; filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, .5)); }
html body.mc-page:not(.x) .q-back { padding: 6px 0; margin-bottom: 10px; }

@media (max-width: 760px) {
  html body.mc-page:not(.x) .qlist.qgrid { grid-template-columns: 1fr; gap: 16px; }
  html body.mc-page:not(.x) .qgrid .qlist-row { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html body.mc-page:not(.x) .qgrid .qlist-row .icon::before { animation: none; }
  html body.mc-page:not(.x) .qgrid .qlist-row { transition: none; }
}

/* ==========================================================================
   Иконки режимов без рамки + два меча для Sword + красный кулдаун
   ========================================================================== */
/* рамка-«слот» вокруг иконки убрана: предмет стоит прямо на карточке, с ореолом позади */
html body.mc-page:not(.x) .qlist-row .icon,
html body.mc-page:not(.x) .q-head .icon { background: none !important; box-shadow: none !important; }
html body.mc-page:not(.x) .qgrid .qlist-row .icon { width: 96px; height: 96px; }
html body.mc-page:not(.x) .qgrid .qlist-row .icon .mc-sprite { width: 68px; height: 68px; }
html body.mc-page:not(.x) .q-head .icon { width: 76px; height: 76px; }
html body.mc-page:not(.x) .q-head .icon .mc-sprite { width: 56px !important; height: 56px !important; }

/* Sword: два меча крест-накрест — правый зеркальный, оба в одном квадрате */
html body.mc-page:not(.x) .q-cross { position: relative; display: block; width: 68px; height: 68px; }
html body.mc-page:not(.x) .q-head .q-cross { width: 56px; height: 56px; }
html body.mc-page:not(.x) .q-cross .mc-sprite { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
html body.mc-page:not(.x) .q-cross .q-flip { transform: scaleX(-1); }

/* Кулдаун — красным */
html body.mc-page:not(.x) .q-cooldown-note {
  color: var(--q-red, #e04444); font-size: 18px; margin-top: 12px !important; text-shadow: 2px 2px 0 rgba(0, 0, 0, .6);
}
