/* Atlas peek-widget: Atlas går in från högerkanten, stannar och vinkar, vänder och går ut igen.
   Ersätter "Maskot peek widget" (maskot-peek.mp4 + canvas black-removal) på vadkostarolen.se.
   Bubblans utseende är oförändrat. */
#maskot-widget {
  position: fixed;
  right: 0;
  bottom: 8px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  pointer-events: none;
  visibility: hidden;
}
#maskot-widget.is-playing { visibility: visible; }

#maskot-bubble {
  background: #131f1e;
  border: 1.5px solid #fe6a3c;
  border-radius: 14px 14px 0 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 46px;
  margin-right: -4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}
#maskot-widget.show-bubble #maskot-bubble { opacity: 1; transform: none; }
#maskot-bubble p      { font-size: 12px; color: #8b9e96; margin: 0; }
#maskot-bubble strong { font-size: 22px; font-weight: 800; color: #fe6a3c; letter-spacing: 2px; }
#maskot-bubble span   { font-size: 12px; color: #e2f2e8; }

#maskot-atlas-wrap { width: 168px; flex-shrink: 0; }
#maskot-atlas {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}
/* reducerad rörelse: stillbild som tonar in i stället för att gå */
#maskot-widget.is-still #maskot-atlas { opacity: 0; transition: opacity 0.4s ease; }
#maskot-widget.is-still.show-bubble #maskot-atlas { opacity: 1; }

@media (max-width: 600px) {
  #maskot-atlas-wrap { width: 120px; }
  #maskot-bubble { margin-top: 30px; padding: 10px 12px; }
  #maskot-bubble strong { font-size: 18px; }
  #maskot-bubble p, #maskot-bubble span { font-size: 11px; }
}
