/* ==========================================================================
   Очередь — список режимов v2: цветной баннер с рендером персонажа сверху,
   под ним счётчики и кнопка. Цвета баннеров те же, что в слайдере на главной.
   Подключается ПОСЛЕДНИМ в queue.html (старые .qc-карточки больше не используются).
   ========================================================================== */
html body.mc-page:not(.x) .qv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }

html body.mc-page:not(.x) .qv {
  --g1: #8a6500; --g2: #e8b400; --sc: #3fbf3f;
  position: relative; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; outline: none;
  background: linear-gradient(180deg, #232323, #181818); border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 16px 34px -18px rgba(0,0,0,.85);
  transition: transform .18s var(--pl-ease, ease), box-shadow .18s;
}
html body.mc-page:not(.x) .qv.tone-gold  { --g1: #8a5a00; --g2: #e8b400; }
html body.mc-page:not(.x) .qv.tone-cyan  { --g1: #05606e; --g2: #14b6c9; }
html body.mc-page:not(.x) .qv.tone-ember { --g1: #a3180a; --g2: #ff5a2a; }
html body.mc-page:not(.x) .qv.tone-violet { --g1: #4c2a9a; --g2: #8b5cf6; }
html body.mc-page:not(.x) .qv.st-closed { --sc: #e04444; }
html body.mc-page:not(.x) .qv.st-off { --sc: #7d838c; }
html body.mc-page:not(.x) .qv.st-off .qv-banner { filter: grayscale(.85) brightness(.8); }
html body.mc-page:not(.x) .qv:hover, html body.mc-page:not(.x) .qv:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--g2) 60%, transparent); box-shadow: 0 20px 38px -14px color-mix(in srgb, var(--g2) 45%, #000);
}

/* ---------- Баннер ---------- */
html body.mc-page:not(.x) .qv-banner {
  position: relative; height: 188px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 70% 90% at 78% 55%, color-mix(in srgb, var(--g2) 55%, transparent), transparent 70%),
    linear-gradient(135deg, var(--g1), color-mix(in srgb, var(--g1) 55%, #151515));
  
}
html body.mc-page:not(.x) .qv-banner::before { /* верхняя полоса цвета режима */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, transparent, var(--g2), transparent); z-index: 2;
}
html body.mc-page:not(.x) .qv-banner::after { /* пиксельная сетка */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 24px 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 85%); mask-image: linear-gradient(90deg, transparent, #000 85%);
}
html body.mc-page:not(.x) .qv-render {
  position: absolute; right: 6px; bottom: -2px; height: 172px; width: auto; max-width: 54%; object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); transition: transform .35s var(--pl-ease, ease); pointer-events: none; user-select: none;
}
html body.mc-page:not(.x) .qv:hover .qv-render { transform: scale(1.06) translateY(-4px); }
html body.mc-page:not(.x) .qv-sprite { position: absolute; right: 26px; bottom: 26px; }
html body.mc-page:not(.x) .qv-sprite .mc-sprite { width: 96px; height: 96px; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
html body.mc-page:not(.x) .qv-sprite .q-cross { width: 96px; height: 96px; }

html body.mc-page:not(.x) .qv-title { position: absolute; left: 24px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; line-height: 1; z-index: 1; }
html body.mc-page:not(.x) .qv-title b { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 40px; font-weight: 800; color: #fff; text-shadow: 3px 3px 0 rgba(0,0,0,.45); letter-spacing: .01em; }
html body.mc-page:not(.x) .qv-title span { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.7); }

html body.mc-page:not(.x) .qv-pill {
  position: absolute; left: 22px; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px;
  font-family: var(--pl-body, 'Onest', sans-serif); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(12,12,12,.72); border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 70%, transparent);
}
html body.mc-page:not(.x) .qv-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
html body.mc-page:not(.x) .qv.st-open .qv-pill i { animation: qv-pulse 1.8s ease-out infinite; }
@keyframes qv-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sc) 70%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- Низ карточки ---------- */
html body.mc-page:not(.x) .qv-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
html body.mc-page:not(.x) .qv-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
html body.mc-page:not(.x) .qv-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 4px; }
html body.mc-page:not(.x) .qv-stats > div + div { border-left: 1px solid rgba(255,255,255,.08); }
html body.mc-page:not(.x) .qv-stats b { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 24px; font-weight: 800; color: #fff; line-height: 1.1; }
html body.mc-page:not(.x) .qv-stats span { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 11px; color: #9a9a9a; }
html body.mc-page:not(.x) .qv-me { align-self: center; padding: 3px 12px; font-family: var(--pl-body, 'Onest', sans-serif); font-size: 13px; font-weight: 700; color: #f5c518; background: rgba(245,197,24,.12); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(245,197,24,.4); }
html body.mc-page:not(.x) .qv-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px;
  font-family: var(--pl-body, 'Onest', sans-serif); font-size: 14px; font-weight: 700; color: #fff;
  background: color-mix(in srgb, var(--g2) 22%, #262626); border-radius: 10px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g2) 45%, transparent);
  transition: background .18s, color .18s;
}
html body.mc-page:not(.x) .qv-cta em { font-style: normal; display: inline-block; transition: transform .18s; }
html body.mc-page:not(.x) .qv:hover .qv-cta { background: var(--g2); color: #111; }
html body.mc-page:not(.x) .qv:hover .qv-cta em { transform: translateX(5px); }
html body.mc-page:not(.x) .qv.st-off .qv-cta { background: #2a2a2a; box-shadow: none; color: #888; }
html body.mc-page:not(.x) .qv.st-off:hover .qv-cta { background: #2a2a2a; color: #888; }

@media (max-width: 760px) {
  html body.mc-page:not(.x) .qv-grid { grid-template-columns: 1fr; gap: 16px; }
  html body.mc-page:not(.x) .qv-banner { height: 168px; }
  html body.mc-page:not(.x) .qv-render { height: 152px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.mc-page:not(.x) .qv, html body.mc-page:not(.x) .qv-render, html body.mc-page:not(.x) .qv-cta em { transition: none; }
  html body.mc-page:not(.x) .qv.st-open .qv-pill i { animation: none; }
}
