/* Thai Lotus R20.10.16 — welcome mascot says Sawasdee!
   Compatible with R20.10.15, preserves 60% popup and side-by-side posters. */
#noticeDialog.campaign-welcome .campaign-host-card{
  overflow:visible!important;
  padding-top:clamp(12px,1.5vh,24px)!important;
}
#noticeDialog.campaign-welcome .campaign-host-card > .welcome-host{
  overflow:visible!important; isolation:isolate!important;
  flex-shrink:0!important; z-index:3!important;
}
/* Bubble is tied to the mascot stage (rather than the text column). */
#noticeDialog.campaign-welcome .welcome-host .tl16-speech-bubble{
  position:absolute!important;
  top:0!important; left:50%!important; right:auto!important;bottom:auto!important;
  transform:translate(-50%,-85%)!important;
  width:max-content!important; max-width:clamp(88px,12vw,148px)!important;
  min-width:78px!important;
  padding:5px 10px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(145deg,#ffffff,#fff3f8)!important;
  border:1.5px solid #d85185!important;
  border-radius:18px!important;
  box-shadow:0 4px 10px #81334e30, inset 0 1px 0 #fff!important;
  z-index:9!important;pointer-events:none!important;
  animation:tl16-bubble-float 3.2s ease-in-out infinite!important;
}
#noticeDialog.campaign-welcome .welcome-host .tl16-speech-bubble strong#introMascotGreeting{
  font-size:clamp(11px,1.12vw,15px)!important;
  line-height:1.18!important;letter-spacing:0!important;
  color:#99244f!important;text-align:center!important;
  font-weight:900!important;white-space:normal!important;
  display:block!important;margin:0!important;padding:0!important;
  text-wrap:balance!important;
}
#noticeDialog.campaign-welcome .welcome-host .tl16-speech-bubble:after{
  content:""!important;position:absolute!important;
  bottom:-5px!important;left:50%!important;
  width:9px!important;height:9px!important;
  background:#fff3f8!important;
  border-right:1.5px solid #d85185!important;
  border-bottom:1.5px solid #d85185!important;
  transform:translateX(-50%) rotate(45deg)!important;
}
/* Restore animated, centered double halo even when an old stylesheet has
   frozen the transform. `rotate` composes with the explicit center translate. */
#noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit{
  left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;
  border-radius:50%!important;pointer-events:none!important;
  transform-origin:50% 50%!important;
  z-index:1!important;
}
#noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit.orbit-one{
  width:100%!important;height:100%!important;
  border:2px dashed rgba(224,69,123,.85)!important;
  box-shadow:0 0 0 3px #fbcde555,0 0 16px #ef79a75a!important;
  animation:tl16-ring-one 11s linear infinite!important;
}
#noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit.orbit-two{
  width:85%!important;height:85%!important;
  border:2px dotted #edb463!important;
  box-shadow:0 0 12px #ffc87a77!important;
  animation:tl16-ring-two 8s linear infinite!important;
}
#noticeDialog.campaign-welcome .welcome-host .intro-mascot-button{
  z-index:4!important;
}
#noticeDialog.campaign-welcome .welcome-host .welcome-twinkle,
#noticeDialog.campaign-welcome .welcome-host .tl16-spark{
  position:absolute!important;z-index:5!important;pointer-events:none!important;
  color:#eaa54b!important;text-shadow:0 0 8px #ffda9b!important;
  animation:tl16-sparkle 2.5s ease-in-out infinite!important;
}
#noticeDialog.campaign-welcome .welcome-host .tl16-spark-one{
  left:-10%!important;top:32%!important;font-size:clamp(9px,1vw,17px)!important;
  animation-delay:-1s!important;
}
#noticeDialog.campaign-welcome .welcome-host .tl16-spark-two{
  right:-14%!important;bottom:20%!important;font-size:clamp(9px,1vw,17px)!important;
  animation-delay:-1.8s!important;
}
#noticeDialog.campaign-welcome.is-greeting .welcome-host .tl16-speech-bubble{
  animation:tl16-greet-pop .45s cubic-bezier(.2,1.1,.25,1) both!important;
}
@keyframes tl16-ring-one{from{rotate:0deg;opacity:.55}50%{opacity:1}to{rotate:360deg;opacity:.55}}
@keyframes tl16-ring-two{from{rotate:0deg;opacity:1}to{rotate:-360deg;opacity:1}}
@keyframes tl16-sparkle{0%,100%{opacity:.3;scale:.8}50%{opacity:1;scale:1.3}}
@keyframes tl16-bubble-float{0%,100%{translate:0 0}50%{translate:0 -2px}}
@keyframes tl16-greet-pop{0%{translate:0 4px;scale:.86;opacity:.3}100%{translate:0 0;scale:1;opacity:1}}
/* Narrow screens still keep the poster on the left; compact greeting stays in
   its own space above the mascot, without being part of the copy column. */
@media(max-width:720px){
  #noticeDialog.campaign-welcome .campaign-host-card{
    grid-template-columns:clamp(52px,15vw,69px) minmax(0,1fr)!important;
    gap:clamp(6px,1.7vw,9px)!important;
    padding-top:14px!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host{
    width:clamp(52px,15vw,69px)!important;
    height:clamp(52px,15vw,69px)!important;
  }
  #noticeDialog.campaign-welcome .welcome-host .tl16-speech-bubble{
    min-width:65px!important;max-width:90px!important;
    padding:3px 5px!important;
    border-radius:11px!important;
    transform:translate(-50%,-90%)!important;
  }
  #noticeDialog.campaign-welcome .welcome-host .tl16-speech-bubble strong#introMascotGreeting{
    font-size:10px!important;line-height:1.1!important;
  }
  #noticeDialog.campaign-welcome .welcome-host .tl16-speech-bubble:after{
    width:7px!important;height:7px!important;bottom:-4px!important;
  }
}
@media(max-width:360px){
  #noticeDialog.campaign-welcome .campaign-host-card{
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:5px!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host{
    width:48px!important;height:48px!important;
  }
  #noticeDialog.campaign-welcome .welcome-host .tl16-speech-bubble{
    min-width:62px!important;max-width:72px!important;
    padding:3px 4px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #noticeDialog.campaign-welcome .welcome-host .tl16-speech-bubble,
  #noticeDialog.campaign-welcome .welcome-host .welcome-twinkle,
  #noticeDialog.campaign-welcome .welcome-host .tl16-spark,
  #noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit.orbit-one,
  #noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit.orbit-two,
  #noticeDialog.campaign-welcome.is-greeting .welcome-host .tl16-speech-bubble{
    animation:none!important;rotate:0deg!important;translate:0!important;scale:1!important;
  }
}

/* R20.10.17 — centered halo fix.
   Root cause: the old transform:translate(-50%,-50%) was applied AFTER
   the independently animated `rotate` property. The translation therefore
   rotated too, making the whole halo orbit away from its mascot.
   `translate` as a separate longhand runs BEFORE `rotate`, so the two
   rings spin on their own center without drifting. */
#noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit.orbit-one,
#noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit.orbit-two{
  top:50%!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  margin:0!important;
  transform:none!important;
  translate:-50% -50%!important;
  transform-origin:50% 50%!important;
  box-sizing:border-box!important;
}
@media (prefers-reduced-motion:reduce){
  #noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit.orbit-one,
  #noticeDialog.campaign-welcome .campaign-details .welcome-host > .welcome-orbit.orbit-two{
    animation:none!important;
    rotate:0deg!important;
    transform:none!important;
    translate:-50% -50%!important;
  }
}
