/* Tabs mascot — VIDEO layer for the auth page (v6, transparent).
   All classes tav- prefixed; layout impact is limited to the avatar block
   injected above each form. The bubble styles are the live values, unchanged.
   The stage is EXACTLY the old SVG mascot's box: 112x105 px (measured from
   login-avatar.html in Chromium at desktop and mobile widths). No card, no
   background, no border, no shadow box: Bandit sits directly on the page.
   The only ground treatment is the soft ellipse the SVG art itself carried
   (viewBox 60..260 x 280..296 -> 21..91 x 98..103.6 stage px, same 10% ink).
   Media layers carry the clip frame (448x500) scaled so the character's
   footprint matches the old SVG body's: old body 241x287 viewBox units =
   84.35x100.45 stage px, feet centre x=56, body bottom y=101.15. Clip idle
   character: height 495 frame px, feet centre x=219.4, bottom y=499.
   scale = 100.45/495 = 0.20293 -> media 90.91x101.46 at left 11.48, top -0.31. */
.tav-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 2px;
  pointer-events: none;
}
.tav-bubble {
  position: relative;
  background: #221D4D;
  color: #FFFFFF;
  font-size: 12.5px;
  line-height: 1.3;
  padding: 6px 11px;
  border-radius: 11px;
  max-width: 230px;
  text-align: center;
  margin-bottom: 6px;
  min-height: 29px;
  z-index: 2;
}
.tav-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #221D4D;
  border-bottom: 0;
}
.tav-stage {
  position: relative;
  width: 112px;
  height: 105px;
  background: transparent;
  overflow: visible;
}
.tav-shadow {
  position: absolute;
  left: 21px;
  top: 98px;
  width: 70px;
  height: 6px;
  border-radius: 50%;
  background: rgba(38, 28, 90, 0.10);
  z-index: 0;
}
.tav-layer {
  position: absolute;
  left: 11.48px;
  top: -0.31px;
  width: 90.91px;
  height: 101.46px;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 1;
}
.tav-layer.on { opacity: 1; }
.tav-layer canvas,
.tav-layer img {
  display: block;
  width: 100%;
  height: 100%;
}
/* The driver videos are frame sources only — never displayed, but NOT
   display:none (some engines stop frame delivery for display:none video). */
.tav-src {
  position: absolute;
  left: -30px;
  top: 0;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.tav-src video {
  width: 2px;
  height: 2px;
}
.tav-stage.rm .tav-layer { transition: none; }
@keyframes tavVideoShake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}
.tav-stage.shake { animation: tavVideoShake 0.45s ease; }
@media (prefers-reduced-motion: reduce) {
  .tav-layer { transition: none; }
  .tav-stage.shake { animation: none; }
}
