/* Um Alaa menu: the mascot alone, floating over the page.

   No band, no card, no reserved row: the character stands on the page at the
   bottom left, above the cart bar, and the depth comes from layered
   lighting on the same artwork (cast shadow, warm rim light, contact shadow,
   slight perspective tilt). Same character, same moods, same sounds. */

/* ------------------------------------------------ mascot: out of the flow */
.mn-floaty {
  position: absolute !important;
  left: 4px !important;
  right: auto !important;
  bottom: calc(70px + var(--mn-safe, 0px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  pointer-events: none !important;
  z-index: 60 !important;
  transition: opacity .3s, transform .3s !important;
}
.mn-floaty.is-hidden {
  opacity: 0 !important;
  transform: translateY(16px) !important;
  pointer-events: none !important;
}
.mn-floaty-row {
  display: block !important;
  max-width: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* the speech bubble stays the app's own (it pops in and fades away after a
   few seconds); it is anchored above the character so the character never
   moves and the bubble never pushes the page around */
.mn-floaty-row {
  position: relative !important;
}
.mn-floaty .mn-bubble {
  position: absolute !important;
  bottom: 100% !important;
  left: 0 !important;
  margin-bottom: 4px !important;
  width: max-content !important;
  max-width: 232px !important;
  z-index: 5 !important;
  background: #fff8f3 !important;
  border: 2px solid #73284a !important;
  box-shadow: 3px 3px 0 #73284a !important;
}

.mn-mascot {
  width: 132px !important;
  height: 132px !important;
  flex: none !important;
  filter:
    drop-shadow(0 16px 15px rgba(58, 8, 30, .34))
    drop-shadow(0 4px 6px rgba(58, 8, 30, .22))
    drop-shadow(-3px -4px 5px rgba(255, 236, 190, .45))
    saturate(1.08) contrast(1.06) !important;
  transform: perspective(420px) rotateY(-9deg) rotateX(3deg) !important;
  transform-origin: 50% 92% !important;
}
.mn-mascot .mm-body img {
  filter: brightness(1.05) contrast(1.04) drop-shadow(0 1px 0 rgba(255, 255, 255, .25)) !important;
}
/* light from the top left, so the surface reads as rounded rather than flat */
.mn-mascot::after {
  content: "";
  position: absolute;
  inset: 4% 6% 8% 6%;
  border-radius: 48% 48% 44% 44%;
  background: radial-gradient(58% 46% at 30% 22%,
    rgba(255, 255, 255, .55),
    rgba(255, 255, 255, .12) 46%,
    rgba(255, 255, 255, 0) 68%);
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 3;
}
.mn-mascot .mm-shadow {
  background: radial-gradient(50% 50% at 50% 50%, rgba(40, 4, 20, .5), rgba(40, 4, 20, 0) 70%) !important;
  height: 8% !important;
  bottom: 0 !important;
  left: 27% !important;
  width: 46% !important;
}

/* the list ends a little higher so the character always has clear page
   underneath it: no band, no card, nothing drawn, just empty background */
.mn-shell.has-bar .mn.is-section {
  padding-bottom: calc(150px + var(--mn-safe, 0px)) !important;
}

/* ------------------------------------------- bottom bar / details sheet */
.mn-sheet {
  z-index: 120 !important;
}
.mn-sheet-card {
  padding-bottom: calc(24px + var(--mn-safe, 0px)) !important;
}
.mn-tb-info { min-width: 0 !important; }
.mn-tb-count, .mn-tb-total { white-space: nowrap !important; }

@media (max-width: 380px) {
  .mn-mascot { width: 120px !important; height: 120px !important; }
  .mn-tb-details { font-size: 11.5px !important; padding: 7px 8px !important; }
  .mn-tb-total { font-size: 16px !important; }
  .mn-tb-go { font-size: 13px !important; }
}
@media (max-height: 700px) {
  .mn-mascot { width: 108px !important; height: 108px !important; }
}
