/* ============================================================
   Mascot Guide — интерактивное обучение с маскотом «Чемп»
   Маскот показывается в полный рост (вырезан с фона).
   ============================================================ */

:root {
  --mg-gold: #ffd54f;
  --mg-gold-dark: #b8860b;
  --mg-card-bg: linear-gradient(165deg, rgba(38, 30, 18, 0.97), rgba(16, 12, 8, 0.97));
  --mg-z: 20000;
}

/* ---------- затемнение + «прожектор» ---------- */
.mg-blocker {
  position: fixed;
  inset: 0;
  z-index: var(--mg-z);
  background: rgba(6, 4, 2, 0.72);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mg-blocker.is-on {
  opacity: 1;
}
.mg-blocker.is-clear {
  /* не полностью transparent: иначе тап пробивает оверлей и кликает ссылки под туром */
  background: rgba(6, 4, 2, 0.02);
}

.mg-spot {
  position: fixed;
  z-index: calc(var(--mg-z) + 1);
  border-radius: 14px;
  pointer-events: none;
  box-shadow:
    0 0 0 3px var(--mg-gold),
    0 0 24px 6px rgba(255, 213, 79, 0.45),
    0 0 0 9999px rgba(6, 4, 2, 0.72);
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.mg-spot[hidden] {
  display: none;
}

/* ---------- диалоговая карточка: маскот в полный рост слева ---------- */
.mg-card {
  position: fixed;
  z-index: calc(var(--mg-z) + 2);
  left: 50%;
  transform: translateX(-50%);
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: min(640px, calc(100vw - 20px));
  min-height: 118px;
  padding: 16px 18px 12px 172px;
  border-radius: 18px;
  border: 1px solid rgba(255, 213, 79, 0.4);
  background: var(--mg-card-bg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  color: #f5ecd9;
  font-family: inherit;
  animation: mg-card-in 0.35s ease;
}
.mg-card.is-top {
  bottom: auto;
  top: max(70px, env(safe-area-inset-top, 0px));
}
@keyframes mg-card-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* маскот в полный рост, «стоит» на нижнем крае карточки и выступает над ней */
.mg-hero {
  position: absolute;
  left: 4px;
  bottom: 6px;
  width: 158px;
  height: 211px;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.65));
}
.mg-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  transform-origin: 50% 100%;
}
.mg-card.is-talking .mg-hero img {
  animation: mg-idle 2.4s ease-in-out infinite;
}
@keyframes mg-idle {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.985) translateY(1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mg-card,
  .mg-card.is-talking .mg-hero img,
  .mg-fab img {
    animation: none !important;
  }
  .mg-spot {
    transition: none;
  }
}

.mg-card .mg-swap {
  position: absolute;
  top: 8px;
  right: 12px;
  appearance: none;
  border: 1px solid rgba(255, 213, 79, 0.35);
  background: rgba(255, 213, 79, 0.06);
  color: rgba(255, 233, 168, 0.85);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  cursor: pointer;
}
.mg-card .mg-swap:hover {
  background: rgba(255, 213, 79, 0.16);
  color: #ffe9a8;
}

.mg-body {
  min-width: 0;
}
.mg-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mg-gold);
  margin-bottom: 4px;
}
.mg-text {
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 42px;
}
.mg-text b,
.mg-text strong {
  color: var(--mg-gold);
}

.mg-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.mg-card .mg-btn {
  appearance: none;
  border: 1px solid rgba(255, 213, 79, 0.5);
  background: rgba(255, 213, 79, 0.08);
  color: #ffe9a8;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.mg-card .mg-btn:hover {
  background: rgba(255, 213, 79, 0.18);
}
.mg-card .mg-btn:active {
  transform: scale(0.97);
}
.mg-card .mg-btn--primary {
  background: linear-gradient(160deg, #ffd54f, #d9a520);
  border-color: #ffd54f;
  color: #241a05;
}
.mg-card .mg-btn--primary:hover {
  background: linear-gradient(160deg, #ffe27a, #e6b232);
}
.mg-step {
  font-size: 12px;
  color: rgba(245, 236, 217, 0.55);
  margin-left: auto;
}
.mg-card .mg-skip {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 236, 217, 0.5);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0 0;
  text-decoration: underline;
}
.mg-card .mg-skip:hover {
  color: rgba(245, 236, 217, 0.85);
}

/* ---------- маскот-кнопка в углу: в полный рост, всегда виден ---------- */
.mg-fab {
  position: fixed;
  z-index: calc(var(--mg-z) - 10);
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  width: 92px;
  height: 122px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.15s ease;
}
.mg-fab:hover {
  transform: scale(1.07);
}
.mg-fab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  display: block;
  animation: mg-fab-idle 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes mg-fab-idle {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.98);
  }
}
.mg-fab__badge {
  position: absolute;
  top: 0;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffd54f, #d9a520);
  color: #241a05;
  font-size: 16px;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
body.site-nav-drawer-open .mg-fab {
  display: none;
}

/* ---------- «развлекатель» во время фоновой обработки ---------- */
.mg-entertainer {
  position: fixed;
  z-index: calc(var(--mg-z) - 5);
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: min(400px, calc(100vw - 24px));
  min-height: 92px;
  padding: 12px 30px 12px 118px;
  border-radius: 16px;
  border: 1px solid rgba(255, 213, 79, 0.4);
  background: var(--mg-card-bg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  color: #f5ecd9;
  animation: mg-card-in-r 0.35s ease;
}
@keyframes mg-card-in-r {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mg-entertainer .mg-hero {
  left: 2px;
  bottom: 4px;
  width: 108px;
  height: 144px;
}
.mg-entertainer .mg-text {
  font-size: 13px;
  min-height: 0;
}
.mg-entertainer .mg-close {
  position: absolute;
  top: 4px;
  right: 8px;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 236, 217, 0.5);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
}
.mg-entertainer .mg-close:hover {
  color: #fff;
}

body.has-voice-dock .mg-entertainer {
  left: 12px;
  right: 12px;
  width: auto;
  min-height: 0;
  padding: 10px 28px 10px 86px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
}
body.has-voice-dock .mg-entertainer .mg-hero {
  width: 78px;
  height: 104px;
}

/* ---------- фон распознавания: тонкая полоска, без меню ---------- */
.mg-wait {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: calc(var(--mg-z) - 4);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 6px 0 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 79, 0.28);
  background: rgba(16, 12, 8, 0.92);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  color: #f5ecd9;
  overflow: hidden;
}
body.has-voice-dock .mg-wait {
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}
body.has-recognize-wait .mg-entertainer {
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
}
.mg-wait__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(255, 213, 79, 0.12);
}
.mg-wait__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffd54f, #d9a520);
  transition: width 0.35s ease;
}
.mg-wait.is-done .mg-wait__bar i {
  background: #81c784;
}
.mg-wait.is-err .mg-wait__bar i {
  background: #ef5350;
  width: 100% !important;
}
.mg-wait__line {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 6px 8px 6px 14px;
  text-decoration: none;
  color: inherit;
}
.mg-wait__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--mg-gold);
  white-space: nowrap;
}
.mg-wait__pct {
  font-size: 11px;
  font-weight: 700;
  color: rgba(245, 236, 217, 0.7);
  white-space: nowrap;
}
.mg-wait__x {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 236, 217, 0.45);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Чемп встречает новичка ---------- */
.mg-welcome {
  position: fixed;
  inset: 0;
  z-index: calc(var(--mg-z) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(232, 163, 61, 0.28), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(215, 24, 42, 0.16), transparent 52%),
    rgba(8, 5, 3, 0.96);
  padding: 20px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mg-welcome.is-on {
  opacity: 1;
  pointer-events: auto;
}
.mg-welcome__inner {
  width: min(440px, 100%);
  text-align: center;
  color: #f5ecd9;
}
.mg-welcome__sprite {
  position: relative;
  width: min(72vw, 280px);
  height: min(42vh, 320px);
  margin: 0 auto 8px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.7));
}
.mg-welcome__sprite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity var(--mg-fade, 200ms) ease-in-out;
  pointer-events: none;
}
.mg-welcome__sprite img.is-show {
  opacity: 1;
}
.mg-welcome.is-on .mg-welcome__sprite {
  animation: mg-welcome-bob 2.8s ease-in-out infinite;
}
@keyframes mg-welcome-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.mg-welcome__title {
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mg-gold);
  text-shadow: 0 4px 24px rgba(255, 213, 79, 0.35);
}
.mg-welcome__text {
  margin: 12px auto 22px;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 236, 217, 0.82);
}
.mg-welcome__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mg-welcome__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffd54f, #d9a520);
  color: #241a05;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 213, 79, 0.28);
}
.mg-welcome__later {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 236, 217, 0.5);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.mg-welcome__later:hover {
  color: rgba(245, 236, 217, 0.85);
}
.mg-welcome__voice {
  margin: -8px auto 20px;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.45;
  color: #ffd54f;
}
.mg-welcome__voice b {
  color: #fff6d4;
}
@media (max-width: 767px) {
  .mg-welcome {
    bottom: calc(var(--dock-h, 58px) + var(--safe-b, 0px));
  }
  body.mg-welcome-on .brand-dock {
    z-index: calc(var(--mg-z) + 20);
  }
  body.mg-welcome-on #brand-dock-voice {
    color: #ffd54f !important;
    animation: mg-voice-home 1.15s ease-in-out infinite;
  }
  body.mg-welcome-on #brand-dock-voice .brand-dock__ico {
    filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.85));
  }
  body.mg-welcome-on .mv-sheet {
    z-index: calc(var(--mg-z) + 15);
  }
}
@keyframes mg-voice-home {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* ---------- полноэкранный выбор маскота (слайдер) ---------- */
.mg-chooser {
  position: fixed;
  inset: 0;
  z-index: calc(var(--mg-z) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 24, 42, 0.22), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(255, 213, 79, 0.14), transparent 55%),
    rgba(8, 5, 3, 0.96);
  overflow-y: auto;
  padding: 20px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mg-chooser.is-on {
  opacity: 1;
  pointer-events: auto;
}
.mg-chooser__inner {
  width: min(720px, 100%);
  margin: auto;
  text-align: center;
  color: #f5ecd9;
}
.mg-chooser__title {
  font-size: clamp(24px, 5.5vw, 40px);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mg-gold);
  text-shadow: 0 4px 24px rgba(255, 213, 79, 0.35);
}
.mg-chooser__sub {
  margin: 10px auto 18px;
  max-width: 460px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(245, 236, 217, 0.75);
}
.mg-slider {
  position: relative;
  margin: 0 auto;
}
.mg-slider__viewport {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 14%;
  -webkit-overflow-scrolling: touch;
  padding: 18px 14% 8px;
  scrollbar-width: none;
}
.mg-slider__viewport::-webkit-scrollbar {
  display: none;
}
.mg-slider__nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 213, 79, 0.4);
  border-radius: 50%;
  background: rgba(20, 14, 8, 0.82);
  color: var(--mg-gold);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.mg-slider__prev {
  left: 2px;
}
.mg-slider__next {
  right: 2px;
}
.mg-slider__nav:hover,
.mg-slider__nav:focus-visible {
  background: rgba(255, 213, 79, 0.18);
}
.mg-choice {
  appearance: none;
  cursor: pointer;
  position: relative;
  flex: 0 0 min(72vw, 260px);
  scroll-snap-align: center;
  padding: 16px 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 213, 79, 0.3);
  background: linear-gradient(170deg, rgba(46, 34, 18, 0.9), rgba(14, 10, 7, 0.95));
  color: #f5ecd9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: scale(0.86);
  opacity: 0.55;
  transition: transform 0.22s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.22s ease;
}
.mg-choice.is-active {
  transform: scale(1);
  opacity: 1;
  border-color: var(--mg-gold);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6), 0 0 32px rgba(255, 213, 79, 0.25);
}
.mg-choice:hover,
.mg-choice:focus-visible {
  border-color: var(--mg-gold);
}
.mg-choice__sprite {
  position: relative;
  display: block;
  width: 100%;
  height: min(34vh, 240px);
  --mg-fade: 180ms;
}
.mg-choice__sprite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity var(--mg-fade, 180ms) ease-in-out;
  pointer-events: none;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.65));
}
.mg-choice__sprite img.is-show {
  opacity: 1;
}
.mg-choice__name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mg-gold);
}
.mg-choice__cta {
  font-size: 13px;
  font-weight: 800;
  padding: 8px 26px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffd54f, #d9a520);
  color: #241a05;
}
.mg-chooser__current-name {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mg-gold);
}
.mg-chooser__current-bio {
  margin: 4px auto 10px;
  font-size: 13px;
  color: rgba(245, 236, 217, 0.65);
}
.mg-slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 14px;
}
.mg-slider__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245, 236, 217, 0.28);
}
.mg-slider__dots span.is-on {
  background: var(--mg-gold);
  box-shadow: 0 0 10px rgba(255, 213, 79, 0.55);
}
.mg-chooser__pick {
  appearance: none;
  border: 0;
  min-width: 220px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(160deg, #ffd54f, #d9a520);
  color: #241a05;
  font-weight: 900;
  cursor: pointer;
}
.mg-chooser__later {
  appearance: none;
  border: 0;
  background: transparent;
  margin-top: 14px;
  color: rgba(245, 236, 217, 0.5);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.mg-chooser__later:hover {
  color: rgba(245, 236, 217, 0.85);
}
.mg-chooser.is-picking .mg-chooser__inner {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.mg-chooser__entrance {
  z-index: 40;
  pointer-events: auto;
}

@media (min-width: 900px) {
  .mg-chooser {
    padding: 28px 24px 32px;
  }
  .mg-chooser__inner {
    width: min(1120px, 94vw);
  }
  .mg-chooser__title {
    font-size: clamp(36px, 4.2vw, 52px);
  }
  .mg-chooser__sub {
    margin: 12px auto 22px;
    max-width: 640px;
    font-size: 17px;
  }
  .mg-slider__viewport {
    gap: 22px;
    padding: 28px 11% 14px;
  }
  .mg-choice {
    flex-basis: min(30vw, 360px);
    padding: 22px 16px 18px;
    border-radius: 28px;
  }
  .mg-choice__sprite {
    height: min(46vh, 400px);
  }
  .mg-choice__name,
  .mg-chooser__current-name {
    font-size: 28px;
  }
  .mg-chooser__current-bio {
    font-size: 15px;
  }
  .mg-chooser__pick {
    min-width: 280px;
    padding: 16px 36px;
    font-size: 18px;
  }
  .mg-slider__nav {
    width: 56px;
    height: 56px;
    font-size: 36px;
  }
  .mg-slider__dots span {
    width: 9px;
    height: 9px;
  }
}
@media (max-width: 560px) {
  .mg-choice {
    flex-basis: min(78vw, 240px);
    padding: 10px 6px 10px;
  }
  .mg-choice__sprite {
    height: 22vh;
  }
  .mg-choice__name,
  .mg-chooser__current-name {
    font-size: 16px;
  }
  .mg-slider__nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mg-welcome.is-on .mg-welcome__sprite {
    animation: none;
  }
  .mg-choice {
    transition: none;
  }
}

/* ---------- мобильная адаптация ---------- */
@media (max-width: 560px) {
  .mg-card {
    padding-left: 118px;
    min-height: 104px;
  }
  .mg-hero {
    width: 110px;
    height: 147px;
    left: 2px;
  }
  .mg-text {
    font-size: 13.5px;
  }
  .mg-fab {
    width: 72px;
    height: 96px;
  }
  .mg-entertainer {
    padding-left: 96px;
  }
  .mg-entertainer .mg-hero {
    width: 88px;
    height: 117px;
  }
}

/* на мобильных постоянной кнопки-маскота нет:
   его роль выполняют выглядывания и голосовой помощник */
@media (max-width: 767px) {
  .mg-fab {
    display: none !important;
  }
}

/* ============================================================
   Камео: пешком выходит с края в центр, жест, уходит.
   Позиция сцены задаётся JS (left/top), не «вылет» спрайта.
   ============================================================ */
.mg-peek {
  position: fixed;
  inset: 0;
  z-index: calc(var(--mg-z) + 3);
  pointer-events: none;
}
.mg-peek__dim {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 2, 0.38);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: auto;
}
.mg-peek.is-on .mg-peek__dim {
  opacity: 1;
}
.mg-peek__stage {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
  will-change: transform;
}
.mg-peek__sprite.is-flip {
  transform: scaleX(-1);
}
.mg-peek__sprite {
  position: relative;
  display: block;
  width: min(72vw, 280px);
  height: min(50vh, 360px);
  overflow: visible;
  flex-shrink: 0;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.7));
}
.mg-peek.is-walking .mg-peek__sprite {
  animation: mg-step 0.4s ease-in-out infinite;
}
.mg-peek.is-walking .mg-peek__sprite.is-flip {
  animation-name: mg-step-flip;
}
@keyframes mg-step {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  20% {
    transform: translateY(-4px) rotate(-0.2deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.6deg);
  }
  80% {
    transform: translateY(-4px) rotate(0.2deg);
  }
}
@keyframes mg-step-flip {
  0%,
  100% {
    transform: scaleX(-1) translateY(0) rotate(-0.6deg);
  }
  20% {
    transform: scaleX(-1) translateY(-4px) rotate(-0.2deg);
  }
  50% {
    transform: scaleX(-1) translateY(-9px) rotate(0.6deg);
  }
  80% {
    transform: scaleX(-1) translateY(-4px) rotate(0.2deg);
  }
}
.mg-peek img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  opacity: 0;
  transition: opacity var(--mg-fade, 200ms) ease-in-out;
  pointer-events: none;
  will-change: opacity;
}
.mg-peek img.is-show {
  opacity: 1;
}
.mg-peek__bubble {
  position: relative;
  min-width: 150px;
  max-width: min(78vw, 240px);
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 79, 0.45);
  background: var(--mg-card-bg);
  color: #f5ecd9;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}
.mg-peek.is-taunt .mg-peek__bubble {
  opacity: 1;
}

/* Выход на ринг: тьма → эффект → появление в центре → жест → тьма. Без ходьбы по рампе. */
.mg-peek--entrance .mg-peek__dim {
  background: #000;
  transition: opacity 0.45s ease, background 0.45s ease;
}
.mg-peek--entrance .mg-peek__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 42% 58% at 50% 58%, rgba(255, 214, 90, 0.38), transparent 62%);
  transition: opacity 0.5s ease;
  z-index: 0;
}
.mg-peek--entrance.is-enter .mg-peek__spot {
  opacity: 1;
}
.mg-peek__fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s ease;
  background: radial-gradient(ellipse 72% 48% at 50% 72%, rgba(140, 120, 220, 0.42), transparent 70%);
}
.mg-peek--entrance .mg-peek__pyro {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mg-peek--entrance .mg-peek__pyro span {
  position: absolute;
  bottom: -20%;
  width: 10%;
  height: 120%;
  background: linear-gradient(to top, #ff4d00, #ffd54f 45%, transparent 78%);
  opacity: 0;
  filter: blur(10px);
  transform: scaleY(0.2);
}
.mg-peek--entrance.is-burst .mg-peek__pyro span {
  animation: mg-pyro 0.7s ease-out forwards;
}
.mg-peek--entrance .mg-peek__pyro span:nth-child(1) { left: 12%; animation-delay: 0s; }
.mg-peek--entrance .mg-peek__pyro span:nth-child(2) { left: 32%; animation-delay: 0.07s; }
.mg-peek--entrance .mg-peek__pyro span:nth-child(3) { left: 58%; animation-delay: 0.04s; }
.mg-peek--entrance .mg-peek__pyro span:nth-child(4) { left: 78%; animation-delay: 0.11s; }
@keyframes mg-pyro {
  0% { opacity: 0; transform: scaleY(0.15) translateY(20%); }
  35% { opacity: 0.95; transform: scaleY(1.05) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.4) translateY(-18%); }
}
.mg-peek__count {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: min(28vw, 180px);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 28px #ff2a2a, 0 0 8px #000;
  transition: opacity 0.12s linear;
}
.mg-peek.is-burst .mg-peek__count,
.mg-peek.is-enter .mg-peek__count {
  opacity: 0;
}
.mg-peek--entrance .mg-peek__stage {
  left: 50%;
  top: 16vh;
  width: min(72vw, 300px);
  transform: translateX(-50%) translateY(24px) scale(0.92);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
@media (min-width: 900px) {
  .mg-peek--entrance .mg-peek__stage {
    top: auto;
    bottom: 0;
    width: min(52vw, 640px);
  }
  .mg-peek--entrance .mg-peek__sprite {
    width: min(52vw, 640px);
    height: min(84vh, 900px);
  }
}
.mg-peek--entrance.is-enter .mg-peek__stage {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}
.mg-peek--entrance.is-gone .mg-peek__stage {
  opacity: 0;
  transform: translateX(-50%) translateY(16px) scale(0.94);
  transition-duration: 0.4s;
}
.mg-peek--entrance.is-gone .mg-peek__spot,
.mg-peek--entrance.is-gone .mg-peek__fog {
  opacity: 0;
}
.mg-peek__bolt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: #e8e4ff;
  z-index: 2;
}
@keyframes mg-bolt {
  0%,
  100% {
    opacity: 0;
  }
  18% {
    opacity: 0.72;
  }
  32% {
    opacity: 0;
  }
  48% {
    opacity: 0.4;
  }
  62% {
    opacity: 0;
  }
}
@keyframes mg-strobe {
  0%,
  100% {
    opacity: 1;
  }
  22% {
    opacity: 0.25;
    background: #fff;
  }
  44% {
    opacity: 1;
  }
  66% {
    opacity: 0.35;
    background: #f26522;
  }
  88% {
    opacity: 1;
  }
}
@keyframes mg-energy-spin {
  0% { transform: rotate(-10deg) scale(0.96); }
  40% { transform: rotate(14deg) scale(1.05); }
  100% { transform: rotate(0) scale(1); }
}

/* Тихие выходы: без оранжевого пиро */
.mg-peek--fx-fog .mg-peek__pyro span,
.mg-peek--fx-house .mg-peek__pyro span,
.mg-peek--fx-tribal .mg-peek__pyro span,
.mg-peek--fx-spot .mg-peek__pyro span,
.mg-peek--fx-stars .mg-peek__pyro span,
.mg-peek--fx-steam .mg-peek__pyro span,
.mg-peek--fx-mist .mg-peek__pyro span,
.mg-peek--fx-heart .mg-peek__pyro span,
.mg-peek--fx-red .mg-peek__pyro span,
.mg-peek--fx-silver .mg-peek__pyro span {
  animation: none !important;
  opacity: 0 !important;
}

/* Тейкер: туман, стоит в дыму, руки поднимают свет. Не могила. */
.mg-peek--fx-fog .mg-peek__dim {
  background: #02010a;
}
.mg-peek--fx-fog .mg-peek__spot {
  background: radial-gradient(ellipse 50% 70% at 50% 62%, rgba(170, 150, 255, 0.28), transparent 66%);
}
.mg-peek--fx-fog.is-burst .mg-peek__fog,
.mg-peek--fx-fog.is-enter .mg-peek__fog {
  opacity: 1;
  background:
    radial-gradient(ellipse 80% 55% at 50% 78%, rgba(90, 70, 170, 0.55), transparent 68%),
    radial-gradient(ellipse 95% 42% at 50% 100%, rgba(20, 12, 48, 0.72), transparent 58%);
}
.mg-peek--fx-fog.is-enter .mg-peek__bolt {
  animation: mg-bolt 0.7s linear 1;
}
.mg-peek--fx-fog.is-on.is-enter .mg-peek__dim {
  opacity: 0.55;
  background: #120c22;
}

/* Коди: пиро на месте, уже стоит */
.mg-peek--fx-pyro .mg-peek__spot {
  background: radial-gradient(ellipse 46% 58% at 50% 60%, rgba(255, 180, 60, 0.4), transparent 64%);
}

/* Винс: свет зала включается, не магическая вспышка */
.mg-peek--fx-house .mg-peek__dim {
  background: #000;
}
.mg-peek--fx-house.is-on.is-enter .mg-peek__dim {
  opacity: 0.2;
  background: rgba(18, 14, 8, 0.35);
}
.mg-peek--fx-house .mg-peek__spot {
  background: radial-gradient(ellipse 52% 62% at 50% 38%, rgba(255, 232, 180, 0.5), transparent 66%);
}

/* Сина: оранжево-синий драйв, не телепорт */
.mg-peek--fx-strobe .mg-peek__dim {
  background: #020814;
}
.mg-peek--fx-strobe .mg-peek__spot {
  background: radial-gradient(
    ellipse 46% 56% at 50% 58%,
    rgba(242, 101, 34, 0.42),
    rgba(30, 90, 168, 0.22) 52%,
    transparent 72%
  );
}
.mg-peek--fx-strobe .mg-peek__pyro span {
  background: linear-gradient(to top, #123a70, #f26522 42%, #fff 72%, transparent 88%);
}
.mg-peek--fx-strobe.is-burst .mg-peek__dim {
  animation: mg-strobe 0.5s linear;
}

/* Голдберг: пиро поглощает */
.mg-peek--fx-engulf .mg-peek__dim {
  background: #140800;
}
.mg-peek--fx-engulf .mg-peek__spot {
  background: radial-gradient(ellipse 55% 70% at 50% 60%, rgba(255, 120, 30, 0.5), transparent 68%);
}
.mg-peek--fx-engulf .mg-peek__pyro {
  height: 88%;
}
.mg-peek--fx-engulf .mg-peek__pyro span {
  width: 22%;
  background: linear-gradient(to top, #ff4d00, #fff6d0 42%, transparent 78%);
}
.mg-peek--fx-engulf.is-burst .mg-peek__pyro span,
.mg-peek--fx-engulf.is-enter .mg-peek__pyro span {
  animation: mg-pyro 1.05s ease-out forwards;
}

/* Роман: долгое ожидание, почти без FX */
.mg-peek--fx-tribal .mg-peek__dim {
  background: #0a0604;
}
.mg-peek--fx-tribal .mg-peek__spot {
  background: radial-gradient(ellipse 30% 42% at 50% 58%, rgba(160, 36, 28, 0.38), transparent 70%);
}
.mg-peek--fx-tribal.is-on.is-enter .mg-peek__dim {
  opacity: 0.78;
}

/* Трипл Эйч: пар */
.mg-peek--fx-steam .mg-peek__dim {
  background: #0c0c10;
}
.mg-peek--fx-steam .mg-peek__spot {
  background: radial-gradient(ellipse 48% 58% at 50% 60%, rgba(180, 190, 210, 0.28), transparent 66%);
}
.mg-peek--fx-steam.is-burst .mg-peek__fog,
.mg-peek--fx-steam.is-enter .mg-peek__fog {
  opacity: 0.85;
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(200, 205, 215, 0.4), transparent 70%),
    radial-gradient(ellipse 90% 36% at 50% 100%, rgba(80, 85, 95, 0.45), transparent 60%);
}

/* Джерико: отсчёт → пиро */
.mg-peek--fx-countdown .mg-peek__dim {
  background: #000;
}
.mg-peek--fx-countdown .mg-peek__spot {
  background: radial-gradient(ellipse 48% 56% at 50% 58%, rgba(255, 40, 40, 0.32), transparent 66%);
}
.mg-peek--fx-countdown .mg-peek__pyro span {
  background: linear-gradient(to top, #a00, #fff 48%, transparent 80%);
}

/* Демон Финна */
.mg-peek--fx-demon .mg-peek__dim {
  background: #0a0000;
}
.mg-peek--fx-demon .mg-peek__spot {
  background: radial-gradient(ellipse 52% 64% at 50% 60%, rgba(160, 0, 10, 0.5), transparent 68%);
}
.mg-peek--fx-demon.is-burst .mg-peek__fog,
.mg-peek--fx-demon.is-enter .mg-peek__fog {
  opacity: 0.7;
  background: radial-gradient(ellipse 70% 55% at 50% 70%, rgba(120, 0, 8, 0.5), transparent 70%);
}
.mg-peek--fx-demon .mg-peek__pyro span {
  background: linear-gradient(to top, #5a0000, #ff3a1a 45%, transparent 80%);
}

/* Рипли: красный зал */
.mg-peek--fx-red .mg-peek__dim {
  background: #120000;
}
.mg-peek--fx-red .mg-peek__spot {
  background: radial-gradient(ellipse 58% 72% at 50% 58%, rgba(170, 0, 18, 0.55), transparent 70%);
}

/* Шарлотт: фейерверк */
.mg-peek--fx-fireworks .mg-peek__spot {
  background: radial-gradient(ellipse 48% 58% at 50% 50%, rgba(255, 220, 140, 0.42), transparent 66%);
}
.mg-peek--fx-fireworks .mg-peek__pyro {
  height: 82%;
}
.mg-peek--fx-fireworks .mg-peek__pyro span {
  background: linear-gradient(to top, #c9a227, #fff4c2 40%, transparent 78%);
}

/* Рик: софит сверху */
.mg-peek--fx-royal .mg-peek__spot {
  background: radial-gradient(ellipse 34% 70% at 50% 32%, rgba(255, 230, 160, 0.58), transparent 62%);
}
.mg-peek--fx-royal .mg-peek__pyro span {
  background: linear-gradient(to top, #8a6a10, #ffe9a0 50%, transparent 82%);
}

/* Мачо: цветной глам */
.mg-peek--fx-glam .mg-peek__dim {
  background: #140018;
}
.mg-peek--fx-glam .mg-peek__spot {
  background: radial-gradient(ellipse 50% 55% at 50% 55%, rgba(255, 60, 180, 0.38), rgba(80, 180, 255, 0.22) 52%, transparent 72%);
}
.mg-peek--fx-glam .mg-peek__pyro span {
  background: linear-gradient(to top, #ff2d6a, #ffe14d 45%, transparent 80%);
}

/* Эдди: тёплое золото */
.mg-peek--fx-warm .mg-peek__spot {
  background: radial-gradient(ellipse 46% 56% at 50% 58%, rgba(255, 170, 50, 0.42), transparent 66%);
}
.mg-peek--fx-warm .mg-peek__pyro span {
  background: linear-gradient(to top, #b06010, #ffd27a 50%, transparent 82%);
}

/* Лив: розовый хаос */
.mg-peek--fx-pink .mg-peek__dim {
  background: #1a0510;
}
.mg-peek--fx-pink .mg-peek__spot {
  background: radial-gradient(ellipse 50% 58% at 50% 58%, rgba(255, 70, 150, 0.42), transparent 66%);
}
.mg-peek--fx-pink .mg-peek__pyro span {
  background: linear-gradient(to top, #c02070, #ffb0d8 48%, transparent 80%);
}

/* Золото: Чемп / Сет / Бьянка */
.mg-peek--fx-gold .mg-peek__spot {
  background: radial-gradient(ellipse 48% 58% at 50% 56%, rgba(232, 163, 61, 0.45), transparent 66%);
}
.mg-peek--fx-gold .mg-peek__pyro span {
  background: linear-gradient(to top, #a06a10, #ffe9c4 48%, transparent 82%);
}

/* Рэмпейдж: короткий взрыв */
.mg-peek--fx-burst .mg-peek__dim {
  background: #140200;
}
.mg-peek--fx-burst .mg-peek__spot {
  background: radial-gradient(ellipse 50% 60% at 50% 58%, rgba(230, 51, 18, 0.45), transparent 66%);
}

/* Кит: пурпур и золото */
.mg-peek--fx-purple .mg-peek__spot {
  background: radial-gradient(ellipse 48% 58% at 50% 56%, rgba(140, 80, 220, 0.4), rgba(212, 175, 55, 0.22) 55%, transparent 72%);
}
.mg-peek--fx-purple .mg-peek__pyro span {
  background: linear-gradient(to top, #5a2a8a, #ffe08a 48%, transparent 82%);
}

/* Бэйли: сердце */
.mg-peek--fx-heart .mg-peek__spot {
  background: radial-gradient(ellipse 42% 52% at 50% 55%, rgba(220, 80, 120, 0.4), transparent 66%);
}

/* Чина / Бекки: жёсткий прожектор */
.mg-peek--fx-spot .mg-peek__dim {
  background: #080808;
}
.mg-peek--fx-spot .mg-peek__spot {
  background: radial-gradient(ellipse 28% 50% at 50% 48%, rgba(255, 255, 255, 0.42), transparent 62%);
}

/* Аска: цветной mist, без зелёного (хромакей) */
.mg-peek--fx-mist .mg-peek__dim {
  background: #120818;
}
.mg-peek--fx-mist .mg-peek__spot {
  background: radial-gradient(ellipse 50% 58% at 50% 58%, rgba(200, 80, 180, 0.32), transparent 66%);
}
.mg-peek--fx-mist.is-burst .mg-peek__fog,
.mg-peek--fx-mist.is-enter .mg-peek__fog {
  opacity: 0.9;
  background:
    radial-gradient(ellipse 60% 50% at 38% 58%, rgba(200, 80, 180, 0.5), transparent 70%),
    radial-gradient(ellipse 52% 46% at 70% 48%, rgba(90, 70, 200, 0.4), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 90%, rgba(240, 220, 255, 0.22), transparent 60%);
}

/* Стелла: звёздная полутьма */
.mg-peek--fx-stars .mg-peek__dim {
  background: #05040c;
}
.mg-peek--fx-stars .mg-peek__spot {
  background: radial-gradient(ellipse 40% 50% at 50% 60%, rgba(180, 160, 255, 0.22), transparent 66%);
}
.mg-peek--fx-stars.is-burst .mg-peek__fog,
.mg-peek--fx-stars.is-enter .mg-peek__fog {
  opacity: 1;
  background:
    radial-gradient(1.5px 1.5px at 18% 24%, #fff, transparent),
    radial-gradient(1px 1px at 42% 16%, #ffe9a0, transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, #fff, transparent),
    radial-gradient(1px 1px at 84% 18%, #d8d0ff, transparent),
    radial-gradient(1px 1px at 22% 62%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 48%, #ffe9a0, transparent),
    radial-gradient(1px 1px at 78% 72%, #fff, transparent),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(80, 60, 140, 0.32), transparent 70%);
}

/* Одри: тёплый зал, серебро, без пиро */
.mg-peek--fx-silver .mg-peek__dim {
  background: #08080c;
}
.mg-peek--fx-silver .mg-peek__spot {
  background: radial-gradient(ellipse 42% 58% at 50% 42%, rgba(232, 228, 214, 0.42), rgba(139, 30, 63, 0.18) 58%, transparent 72%);
}
.mg-peek--fx-silver.is-on.is-enter .mg-peek__dim {
  opacity: 0.42;
}

/* Появления */
.mg-peek--appear-stand .mg-peek__stage {
  transform: translateX(-50%) scale(1);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mg-peek--appear-smoke .mg-peek__stage {
  transform: translateX(-50%) scale(0.98);
  opacity: 0;
  transition: transform 1.15s ease, opacity 1.15s ease;
}
.mg-peek--appear-strut .mg-peek__stage {
  transform: translateX(-50%) translateY(18px) scale(0.94);
  transition: transform 0.75s ease, opacity 0.45s ease;
}
.mg-peek--appear-slow .mg-peek__stage {
  transform: translateX(-50%) translateY(20px) scale(0.96);
  transition-duration: 1.1s;
}
.mg-peek--appear-wait .mg-peek__stage {
  transform: translateX(-50%) scale(1);
  opacity: 0;
  transition: opacity 0.12s linear;
}
.mg-peek--appear-pop .mg-peek__stage {
  transform: translateX(-50%) scale(0.82);
  transition: transform 0.32s cubic-bezier(0.14, 1.35, 0.28, 1), opacity 0.2s ease;
}
.mg-peek--appear-energy .mg-peek__stage {
  transform: translateX(-50%) scale(0.94);
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}
.mg-peek--appear-energy.is-enter .mg-peek__sprite {
  animation: mg-energy-spin 0.7s ease-out;
}
.mg-peek--appear-sway .mg-peek__stage {
  transform: translateX(-50%) scale(0.96) rotate(-2deg);
  transition: transform 0.55s ease, opacity 0.35s ease;
}
.mg-peek--appear-sway.is-enter .mg-peek__stage {
  transform: translateX(-50%) scale(1) rotate(0);
}

/* ============================================================
   Большой боковой маскот (десктоп): стоит в свободной полосе
   слева или справа от контента и крутит идл-анимации.
   Коробка спрайта фиксирована JS (--mg-walker-w/h), кадры
   вписываются contain — смена кадра не меняет размер.
   ============================================================ */
.mg-walker {
  position: fixed;
  bottom: 0;
  z-index: 12;
  cursor: pointer;
  animation: mg-walker-in 0.8s ease;
}
.mg-walker--left {
  left: 4px;
}
.mg-walker--right {
  right: 4px;
}
@keyframes mg-walker-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mg-walker__flip {
  display: block;
  width: var(--mg-walker-w, 320px);
  height: var(--mg-walker-h, 427px);
  flex-shrink: 0;
}
/* маскот справа смотрит в сторону контента */
.mg-walker--right .mg-walker__flip {
  transform: scaleX(-1);
}
.mg-walker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  pointer-events: none;
  transform-origin: 50% 100%;
}
/* лёгкое «дыхание» между анимациями */
.mg-walker:not(.is-animating) img {
  animation: mg-walker-breathe 3.4s ease-in-out infinite;
}
@keyframes mg-walker-breathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.988);
  }
}
.mg-walker__bubble {
  position: absolute;
  left: 55%;
  bottom: 88%;
  min-width: 150px;
  max-width: 230px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 79, 0.45);
  background: var(--mg-card-bg);
  color: #f5ecd9;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  z-index: 1;
}
.mg-walker--right .mg-walker__bubble {
  left: auto;
  right: 55%;
}
.mg-walker__bubble[hidden] {
  display: none;
}
/* меню маскота: обучение, помощник, смена скина */
.mg-walker__menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 58%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 185px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 213, 79, 0.45);
  background: var(--mg-card-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 2;
  animation: mg-card-in-r 0.2s ease;
}
.mg-walker__menu[hidden] {
  display: none;
}
.mg-walker__menu button {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(255, 213, 79, 0.4);
  background: rgba(255, 213, 79, 0.08);
  color: #ffe9a8;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  text-align: left;
  transition: background 0.15s ease;
}
.mg-walker__menu button:hover {
  background: rgba(255, 213, 79, 0.2);
}
.mg-walker--dressing .mg-walker__flip {
  animation: mg-dress 0.9s ease;
}
@keyframes mg-dress {
  0% { transform: scaleX(1); filter: brightness(1); }
  35% { transform: scaleX(0.08); filter: brightness(1.8); }
  70% { transform: scaleX(1); filter: brightness(1.35); }
  100% { transform: scaleX(1); filter: brightness(1); }
}
.mg-wardrobe .mg-chooser__inner {
  width: min(1120px, 100%);
}
.mg-wardrobe .mg-chooser__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.mg-wardrobe .mg-choice {
  flex: 0 0 min(148px, 36vw);
  width: min(148px, 36vw);
  transform: none;
  opacity: 1;
  scroll-snap-align: unset;
}
.mg-wardrobe .mg-choice img {
  position: static;
  width: 100%;
  height: auto;
  max-height: min(34vh, 260px);
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.65));
}
.mg-wardrobe__upload {
  display: block;
  margin: 12px auto 0;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 213, 79, 0.45);
  color: #ffe9a8;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 213, 79, 0.06);
}
.mg-wardrobe .mg-choice.is-on {
  outline: 2px solid #ffd54f;
}
.mg-wardrobe .mg-choice--draft {
  opacity: 0.65;
  cursor: default;
}
.mg-wardrobe .mg-choice--draft .mg-choice__cta {
  background: transparent;
  border: 1px dashed rgba(255, 213, 79, 0.5);
  color: #ffe9a8;
}
@media (max-width: 767px) {
  .mg-walker {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mg-walker img {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================
   Голосовой помощник (мобильные): панель снизу
   ============================================================ */
.mv-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: calc(var(--mg-z) + 5);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  border: 1px solid rgba(255, 213, 79, 0.4);
  border-bottom: 0;
  background: #16100a;
  color: #f5ecd9;
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.65);
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.3, 1.1, 0.6, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
}
.mv-sheet.is-on {
  transform: translateY(0);
  pointer-events: auto;
}
.mv-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 213, 79, 0.2);
}
.mv-head img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}
.mv-head .mv-title {
  flex: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--mg-gold);
}
.mv-head .mv-title small {
  display: block;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 11px;
  color: rgba(245, 236, 217, 0.6);
}
.mv-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(245, 236, 217, 0.7);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.mv-costume,
.mv-swap {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(255, 213, 79, 0.4);
  background: rgba(255, 213, 79, 0.1);
  color: #ffe9a8;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
  flex-shrink: 0;
}
.mv-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 213, 79, 0.28);
}
.mv-hero img,
.mv-hero .mv-card__ph {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1208;
}
.mv-hero__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.mv-hero__name {
  font-size: 13px;
  font-weight: 800;
  color: #f5ecd9;
  line-height: 1.25;
}
.mv-hero__class {
  font-size: 11px;
  font-weight: 700;
  color: #ffd54f;
  text-transform: capitalize;
}
.mv-builds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.mv-build {
  display: block;
  text-decoration: none;
  color: #f5ecd9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 213, 79, 0.3);
  background: rgba(0, 0, 0, 0.25);
}
.mv-build img {
  width: 100%;
  height: auto;
  min-height: 120px;
  display: block;
  background: #111;
}
.mv-build__name {
  display: block;
  padding: 6px 8px 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.mv-stage {
  position: relative;
  flex: 1;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #16100a;
}
.mv-thinker {
  display: none;
  position: fixed;
  top: 0;
  left: 50%;
  z-index: calc(var(--mg-z) + 4);
  width: min(58vw, 250px);
  height: 28vh;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.35s ease;
}
.mv-thinker.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.mv-thinker img {
  width: 100%;
  height: 175%;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}
.mv-thinker.is-idle img {
  animation: mv-idle-sway 2.4s ease-in-out infinite;
}
.mv-thinker.is-found img {
  animation: mv-found-pop 0.5s ease;
}
@keyframes mv-idle-sway {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes mv-search-wiggle {
  0% {
    transform: rotate(-6deg) translateY(0);
  }
  50% {
    transform: rotate(6deg) translateY(-8px);
  }
  100% {
    transform: rotate(-6deg) translateY(0);
  }
}
@keyframes mv-found-pop {
  0% {
    transform: scale(0.86) translateY(8px);
  }
  55% {
    transform: scale(1.08) translateY(-6px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
@keyframes mv-lost-shake {
  0%,
  100% {
    transform: translateX(0) rotate(0);
  }
  25% {
    transform: translateX(-7px) rotate(-4deg);
  }
  75% {
    transform: translateX(7px) rotate(4deg);
  }
}
@media (max-width: 767px) {
  .mv-thinker {
    display: block;
  }
}
.mv-log {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 90px;
  background: #16100a;
}
.mv-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.4;
}
.mv-msg--bot {
  align-self: flex-start;
  background: rgba(255, 213, 79, 0.12);
  border: 1px solid rgba(255, 213, 79, 0.25);
}
.mv-msg--user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.mv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  width: 100%;
  padding: 4px 0 2px;
}
.mv-card[data-pick] { cursor: pointer; }
.mv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #f5ecd9;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}
.mv-card img,
.mv-card__ph {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 213, 79, 0.12);
  border: 1px solid rgba(255, 213, 79, 0.25);
}
.mv-card__name {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mv-cards--detail {
  grid-template-columns: 1fr;
}
.mv-cards--detail .mv-card {
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 10px;
}
.mv-cards--detail .mv-card__name {
  max-width: none;
  white-space: normal;
  font-weight: 800;
  font-size: 12px;
}
.mv-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mv-card__meta,
.mv-card__moves {
  color: #c9b291;
  font-size: 10px;
  line-height: 1.3;
}
.mv-card__desc {
  color: #e8dcc4;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}
.mv-cards__more {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--mg-gold);
  font-size: 12px;
  font-weight: 700;
}
.mv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 8px;
}
.mv-chip {
  appearance: none;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(255, 213, 79, 0.35);
  background: rgba(255, 213, 79, 0.08);
  color: #f5ecd9;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
}
.mv-photo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 8px;
}
.mv-photo-chip[hidden] { display: none; }
.mv-photo-chip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 213, 79, 0.35);
}
.mv-photo-chip__x {
  background: transparent;
  border: 0;
  color: #f0a0a0;
  font-size: 20px;
  cursor: pointer;
}
.mv-msg__photo {
  display: block;
  max-width: 160px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 6px;
}
.mv-attach {
  appearance: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 79, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #ffd54f;
  font-size: 18px;
  flex-shrink: 0;
}
.mv-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 14px;
  border-top: 1px solid rgba(255, 213, 79, 0.2);
}
.mv-input {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 213, 79, 0.3);
  background: rgba(0, 0, 0, 0.35);
  color: #f5ecd9;
  font-size: 14px;
  padding: 10px 12px;
}
.mv-mic {
  appearance: none;
  cursor: pointer;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(160deg, #ffd54f, #d9a520);
  color: #241a05;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(255, 213, 79, 0.35);
}
.mv-mic svg {
  width: 22px;
  height: 22px;
}
.mv-mic__label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.mv-mic.is-listening {
  animation: mv-pulse 1.1s ease infinite;
}
.mv-mic[disabled] {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}
@keyframes mv-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 213, 79, 0.55);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255, 213, 79, 0);
  }
}
@media (min-width: 768px) {
  .mv-sheet {
    left: auto;
    right: 20px;
    width: 380px;
    border-radius: 20px;
    bottom: 20px;
    border-bottom: 1px solid rgba(255, 213, 79, 0.4);
  }
}

/* ---------- колокольчик заявок + мигание маскота ---------- */
.site-nav__bell-wrap {
  position: relative;
  flex-shrink: 0;
}
.site-nav__btn--bell {
  position: relative;
  min-width: 44px;
  padding: 0;
}
.site-nav__btn--bell svg {
  display: block;
  margin: 0 auto;
}
.site-nav__bell-dot {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.site-nav__btn--bell.is-alert {
  animation: mg-bell-pulse 1.2s ease-in-out infinite;
  border-color: rgba(255, 213, 79, 0.7);
  color: var(--mg-gold, #ffd54f);
}
@keyframes mg-bell-pulse {
  0%,
  100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(12deg);
  }
}
.site-nav__inbox {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 4100;
  width: min(320px, 92vw);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 8px;
  border-radius: 12px;
  background: #141018;
  border: 1px solid rgba(255, 213, 79, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.site-nav__inbox-empty {
  margin: 8px 10px;
  color: rgba(245, 236, 217, 0.7);
  font-size: 13px;
}
.site-nav__inbox-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #f5ecd9;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}
.site-nav__inbox-item b {
  color: var(--mg-gold, #ffd54f);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-nav__inbox-item.is-unread {
  background: rgba(255, 213, 79, 0.12);
}
.site-nav__inbox-item:hover {
  background: rgba(255, 213, 79, 0.18);
}
.mg-walker.is-alert .mg-walker__flip,
.mg-fab.is-alert img,
.mg-peek.is-alert .mg-peek__sprite {
  animation: mg-inbox-glow 1.15s ease-in-out infinite;
}
@keyframes mg-inbox-glow {
  0%,
  100% {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 22px #ffd54f);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav__btn--bell.is-alert,
  .mg-walker.is-alert .mg-walker__flip,
  .mg-fab.is-alert img,
  .mg-peek.is-alert .mg-peek__sprite {
    animation: none;
  }
}
