/* ── Mascota animada (mascot.js) ── */
.mascot-host{position:relative;pointer-events:none;}
.mascot-layer{position:absolute;inset:0;opacity:0;transition:opacity .18s ease;}
.mascot-layer.on{opacity:1;}
.mascot-layer video,.mascot-layer canvas{
  position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain;
  display:block;background:transparent;
}
.mascot-canvas-mode .mascot-layer video{width:2px!important;height:2px!important;opacity:.01;}
.mascot-host[data-state="bigwin"]{filter:drop-shadow(0 0 22px rgba(255,160,0,.95));}
.mascot-host[data-state="bonus"]{filter:drop-shadow(0 0 22px rgba(200,80,255,.95));}
.mascot-host[data-state="win"]{filter:drop-shadow(0 0 14px rgba(255,140,0,.75));}
.mascot-host[data-state="idle"],.mascot-host[data-state="lose"]{filter:drop-shadow(0 8px 14px rgba(0,0,0,.6));}

/* Bocadillo */
.mascot-bubble{
  position:absolute;z-index:5;pointer-events:none;
  padding:.45em .9em;border-radius:14px;
  background:linear-gradient(180deg,#fff8e8,#ffe3b0);
  color:#3a1a05;font-weight:bold;font-family:Georgia,serif;
  font-size:clamp(.72rem,1.1vw,1rem);letter-spacing:.03em;white-space:nowrap;
  border:2px solid #ff8a1e;box-shadow:0 4px 14px rgba(0,0,0,.45),0 0 18px rgba(255,140,0,.45);
  opacity:0;transform:translateY(8px) scale(.85);transform-origin:bottom center;
  transition:opacity .22s ease,transform .25s cubic-bezier(.3,1.5,.5,1);
}
.mascot-bubble::after{
  content:'';position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);
  border:8px solid transparent;border-top-color:#ff8a1e;border-bottom:0;
}
.mascot-bubble.show{opacity:1;transform:translateY(0) scale(1);}

/* ── Pedestal: plataforma pequeña + personaje grande apoyado en el centro de la cara superior ──
   Contenedor W × 1.55W. Plataforma = 72% del ancho, centrada en la base (alto = .72*633/1200 = 38% de W).
   Centro de la elipse superior ≈ 27% del alto de la plataforma desde arriba → bottom = 38%*(1-.27) = 27.7% de W.
   Personaje = 100% del ancho del contenedor; sus pies (97% del clip) se apoyan en ese punto.                   */
.mascot-pedestal{position:relative;aspect-ratio:1000/1550;pointer-events:none;}
.mascot-pedestal .ped-img{
  position:absolute;left:50%;bottom:0;width:72%;height:auto;display:block;transform:translateX(-50%);
  animation:pedGlow 3.2s ease-in-out infinite;
}
@keyframes pedGlow{0%,100%{filter:drop-shadow(0 12px 18px rgba(0,0,0,.65)) drop-shadow(0 0 8px rgba(255,120,0,.25));}
                   50%{filter:drop-shadow(0 12px 18px rgba(0,0,0,.65)) drop-shadow(0 0 18px rgba(190,80,255,.45));}}
/* sombra de contacto bajo los pies (unidades relativas al ancho W del contenedor) */
.mascot-pedestal::before{
  content:'';position:absolute;left:50%;bottom:calc(27.7% * 1000 / 1550 - 1%);width:34%;height:4%;
  transform:translateX(-50%);border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.55) 0%,rgba(0,0,0,.25) 45%,rgba(0,0,0,0) 72%);
  z-index:1;
}
.mascot-pedestal #mascot-stage{
  position:absolute;left:50%;bottom:calc(27.7% * 1000 / 1550 - 2.2%);width:100%;aspect-ratio:1244/1564;
  transform:translateX(-50%);z-index:2;
}
.mascot-pedestal .mascot-bubble{left:50%;bottom:98%;top:auto;z-index:5;}
.mascot-pedestal .mascot-bubble{transform:translate(-50%,8px) scale(.85);}
.mascot-pedestal .mascot-bubble.show{transform:translate(-50%,0) scale(1);}
