/* AlphaPvP — кадровый маскот (левый нижний угол) */
.gnome-mascot {
  position: fixed;
  background: transparent !important;
  left: 12px;
  bottom: 12px;
  z-index: 40;
  width: 96px;
  /* выше кадра 3:4 + запас сверху под scale idle / хвосты */
  height: calc(96px * 4 / 3 + 14px);
  padding-top: 8px;
  box-sizing: border-box;
  margin: 0;
  overflow: visible;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}
.gnome-mascot:focus-visible {
  box-shadow: 0 0 0 2px rgba(232,184,74,.7);
  border-radius: 8px;
}
.gnome-mascot__glow {
  position: absolute;
  inset: 8% 12% 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 180, 60, 0.22) 0%, transparent 70%);
  filter: blur(14px);
  animation: gnomeGlowPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}
.gnome-mascot__sprite {
  position: absolute;
  background: transparent !important;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: 50% 100%;
  will-change: transform;
  pointer-events: none;
}
/* Idle: только scale/rotate — без translateY */
.gnome-mascot--idle .gnome-mascot__sprite {
  animation: gnomeIdleBreath 2.8s ease-in-out infinite;
}
.gnome-mascot--wave .gnome-mascot__sprite {
  animation: gnomeWave 0.9s ease-in-out;
}
.gnome-mascot--dance .gnome-mascot__sprite {
  animation: gnomeDance 1.4s ease-in-out;
}
@keyframes gnomeIdleBreath {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.012) rotate(0.4deg); }
}
@keyframes gnomeWave {
  0%   { transform: scale(1) rotate(0deg); }
  20%  { transform: scale(1.01) rotate(-2deg); }
  45%  { transform: scale(1.02) rotate(2.5deg); }
  70%  { transform: scale(1.01) rotate(-1.5deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes gnomeDance {
  0%   { transform: scale(1) rotate(0deg); }
  15%  { transform: scale(1.03) rotate(-4deg); }
  30%  { transform: scale(0.99) rotate(4deg); }
  45%  { transform: scale(1.04) rotate(-3deg); }
  60%  { transform: scale(1) rotate(3deg); }
  75%  { transform: scale(1.02) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
@keyframes gnomeGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.06); }
}
@media (max-width: 640px) {
  .gnome-mascot {
    width: 72px;
    height: calc(72px * 4 / 3 + 12px);
    padding-top: 6px;
    left: 6px;
    bottom: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gnome-mascot--idle .gnome-mascot__sprite,
  .gnome-mascot__glow { animation: none; }
}
