/* Popex v125 — final bubbles sit directly on the base game screen.
   No blur curtain, no dark scrim, just a near-transparent bubble like POP TIME. */

body.pw124-ending{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
body.pw124-ending main.moonlit-app{
  filter:none!important;
  -webkit-filter:none!important;
  pointer-events:none!important;
}
#gameoverModal.pw124-end-layer{
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  padding:calc(12px + env(safe-area-inset-top,0px)) 14px calc(12px + env(safe-area-inset-bottom,0px))!important;
}
#pw124EndBubble{
  width:clamp(170px,52vw,220px)!important;
  height:clamp(170px,52vw,220px)!important;
  padding:18px 14px!important;
  border:1.35px solid rgba(240,247,255,.48)!important;
  background:
    radial-gradient(circle at 25% 13%, rgba(255,255,255,.17) 0%, transparent 15%),
    radial-gradient(ellipse at 31% 20%, rgba(255,255,255,.10) 0%, transparent 38%),
    linear-gradient(155deg, rgba(168,183,230,.26), rgba(88,107,178,.18) 58%, rgba(52,74,145,.20))!important;
  -webkit-backdrop-filter:blur(5.5px) saturate(110%)!important;
  backdrop-filter:blur(5.5px) saturate(110%)!important;
  box-shadow:
    inset 0 4px 12px rgba(255,255,255,.14),
    inset 0 -10px 18px rgba(19,35,82,.10),
    0 10px 28px rgba(2,9,26,.12),
    0 0 12px rgba(134,166,237,.06)!important;
  color:#fbfdff!important;
  text-shadow:0 1px 4px rgba(14,28,72,.22)!important;
}
#pw124EndBubble::before{
  inset:8.2%!important;
  border:1px solid rgba(248,251,255,.10)!important;
}
#pw124EndBubble .pw124-crown{
  width:clamp(52px,14vw,68px)!important;
  height:clamp(38px,11vw,54px)!important;
  margin-bottom:1px!important;
  filter:drop-shadow(0 3px 5px rgba(77,54,44,.14));
}
#pw124EndBubble .pw124-end-label{
  font-size:clamp(10px,3vw,12px)!important;
  letter-spacing:1.8px!important;
  color:#ffe9b8!important;
}
#pw124EndBubble .pw124-end-title{
  font-size:clamp(23px,6.8vw,30px)!important;
  line-height:1.04!important;
}
#pw124EndBubble.is-record .pw124-end-title{font-size:clamp(19px,5.8vw,25px)!important}
#pw124EndBubble .pw124-end-score{
  font-size:clamp(22px,6vw,28px)!important;
}
#pw124EndBubble.is-game-over .pw124-end-title{
  font-size:clamp(26px,8vw,34px)!important;
}
#gameoverModal.pw124-end-layer.is-popping #pw124EndBubble{
  animation:pw124-bubble-burst .24s cubic-bezier(.2,.1,.4,1) forwards!important;
}
@media (max-height:630px){
  #pw124EndBubble{width:clamp(150px,38vh,195px)!important;height:clamp(150px,38vh,195px)!important}
}
