/* The agent characters — js/core/bot.js (round 20). A figure (.bot) is sized by its width; the avatar (.aim.aim-bot) keeps
   the box of App.aiMark (--aim) so every list keeps its layout. Motion: the figure floats, the thruster breathes, the eyes
   blink and look at the pointer (--bx/--by on .bot, --aim-x/--aim-y on a large avatar), the head turns a little after them.
   Everything stands still under «reduce motion». */
.bot { --bx: 0; --by: 0; position: relative; display: inline-block; width: 160px; line-height: 0; vertical-align: middle; }
.bot > .bot-svg { display: block; width: 100%; height: auto; overflow: visible; }
/* a bust shows only what is in its frame (the body below the shoulders is drawn, but cut) */
.bot-bust > .bot-svg { overflow: hidden; }
/* round 20b (owner: «когда листаешь… подлагивает»): a figure is STILL by default — dozens of animated SVGs repaint every frame.
   Only a live one (.bot.is-live: the hovered card, the hero, the editor) floats, blinks and looks at the pointer. The float
   moves the whole <svg> (a composited layer, no repaint); the blink, the pulses and the eyes are inside the drawing. */
.bot.is-live > .bot-svg { animation: bot-float 4.6s ease-in-out infinite; will-change: transform; }
.bot.is-live .bot-thr { transform-box: fill-box; transform-origin: 50% 20%; animation: bot-thr 4.6s ease-in-out infinite; }
.bot.is-live .bot-head { transform-box: view-box; transform-origin: 100px 118px; transform: rotate(calc(var(--bx, 0) * 3.5deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bot.is-live .bot-eyes { transform: translate(calc(var(--bx, 0) * 7px), calc(var(--by, 0) * 5px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bot.is-live .bot-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: bot-blink 5.6s infinite; }
.bot.is-live .bot-pulse { animation: bot-pulse 2.8s ease-in-out infinite; }
.bot.is-live .bot-halo { animation: bot-halo 4.6s ease-in-out infinite; }
.bot.is-live .bot-steam { animation: bot-steam 2.4s ease-in-out infinite; }
@keyframes bot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.4%); } }
@keyframes bot-thr { 0%, 100% { opacity: .95; transform: scale(1); } 50% { opacity: .55; transform: scale(.8, .72); } }
@keyframes bot-blink { 0%, 92.5%, 100% { transform: scaleY(1); } 94.5% { transform: scaleY(.1); } 96.5% { transform: scaleY(1); } }
@keyframes bot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes bot-halo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bot-steam { 0% { opacity: 0; transform: translateY(3px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-5px); } }

/* the avatar: no tile, no rim — the head itself is the silhouette; it stands still (a live large one blinks and looks) */
.aim.aim-bot { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.aim.aim-bot::before, .aim.aim-bot::after { content: none; }
.aim.aim-bot > .bot-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.aim-l.aim-bot.is-live .bot-eyes { transform: translate(calc(var(--aim-x, 0) * 80px), calc(var(--aim-y, 0) * 70px)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.aim-l.aim-bot.is-live .bot-eye { transform-box: fill-box; transform-origin: 50% 50%; animation: bot-blink 6.4s infinite; }
.aim.aim-bot.is-live:hover { transform: translateY(-2px) rotate(-4deg); }

@media (prefers-reduced-motion: reduce) {
  .bot > .bot-svg, .bot-svg .bot-thr, .bot-svg .bot-eye, .bot-svg .bot-pulse, .bot-svg .bot-halo, .bot-svg .bot-steam { animation: none !important; }
  .bot-svg .bot-head, .bot-svg .bot-eyes { transition: none !important; transform: none !important; }
}

/* r32 (Продажник): аватар ИИ-агента (App.c.avatar) — голова его персонажа без лиловой плашки; точка состояния — на месте */
.av.av-bot { background: none; border-color: transparent; box-shadow: none; overflow: visible; }
.av.av-bot > .aim { width: 100%; height: 100%; }
/* приветствие чата (core/brief-chat.js): бюст агента вместо маленькой головы */
.brc-hi-face > .bot { width: 92px; filter: drop-shadow(0 12px 16px rgba(40, 20, 110, .18)); }
