/* Thai Lotus R20.M3 — cinematic festival scenes, 18 holidays.
   Add AFTER the entire prior stylesheet stack. Poster:55%, detail:45%, height:80dvh (R20.M9 update).
   The entire scene is inside the mascot host; text, carousel and controls remain on top. */
#noticeDialog.campaign-welcome .campaign-host-card{position:relative!important;isolation:isolate}
#noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene{
  position:absolute!important;inset:0!important;z-index:0!important;
  overflow:hidden;border-radius:inherit;pointer-events:none!important;user-select:none!important;
  background:linear-gradient(125deg,var(--tl-season-soft,#fff8fb) 0%,#fff 48%,var(--tl-season-glow,#fff0f5) 100%);
  opacity:.95;transition:opacity .35s ease;
}
#noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene[hidden],
#noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene-label[hidden]{display:none!important}
#noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene .tl-festival-scene-art{
  display:block;width:100%;height:100%;min-height:100%;object-fit:cover;
  object-position:center center;opacity:1;
  filter:saturate(.98);
}
#noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene .tl-festival-scene-shimmer{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% 45%,#fff0 0%,#fff6 58%,#fff0 92%);
}
#noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene .tl-festival-scene-particles{
  position:absolute;inset:0;overflow:hidden;pointer-events:none;
}
#noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene .tl-festival-particle{
  position:absolute;left:var(--x);top:var(--y);z-index:0;
  font-style:normal;font-size:clamp(12px,1.4vw,22px);line-height:1;
  color:var(--tl-season-accent,#cf7290);opacity:.57;filter:drop-shadow(0 1px 4px #fff9);
  transform:translate3d(0,0,0) scale(var(--scale));
  animation:tl-festival-softfloat 5.5s ease-in-out var(--j) infinite alternate;
}
@keyframes tl-festival-softfloat{0%{transform:translate3d(0,3px,0) scale(var(--scale));opacity:.2}100%{transform:translate3d(0,-11px,0) scale(var(--scale));opacity:.78}}
#noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene-label{
  position:absolute!important;left:clamp(4px,1.1vw,14px)!important;right:auto!important;top:clamp(5px,1vw,14px)!important;
  z-index:2;max-width:57%;pointer-events:none!important;
  padding:5px 8px;border:1px solid var(--tl-season-line,#eed7de);
  border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font:900 clamp(8px,.8vw,12px)/1.2 system-ui,-apple-system,sans-serif;
  letter-spacing:.04em;color:var(--tl-season-text,#693f58);
  background:color-mix(in srgb,var(--tl-season-soft,#fff0f8) 83%,white);
  box-shadow:0 4px 15px #472b3520;
}
/* The R20.M2 floating emojis cover the entire popup; M3 confines decorations to the scenic host. */
#noticeDialog.campaign-welcome.tl-festival-scenes-on .tl-deluxe-popup-decor{display:none!important}
/* Keep existing lotus, greeting, and welcome text above local festive scene. */
#noticeDialog.campaign-welcome .campaign-host-card>.welcome-host,
#noticeDialog.campaign-welcome .campaign-host-card>.campaign-host-hello{
  position:relative;z-index:1;
}
/* Scene's sparkles never sit on top of existing tap targets or text. */
#noticeDialog.campaign-welcome.tl-festival-scenes-on .welcome-poster{
  position:relative;box-shadow:inset 0 0 0 2px var(--tl-season-line,#e2bdc3);
}
#noticeDialog.campaign-welcome.tl-festival-scenes-on .welcome-poster::after{
  content:"";position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,var(--tl-season-bg,#623c4d),var(--tl-season-accent,#e9b887),var(--tl-season-bg,#623c4d));
  z-index:3;pointer-events:none;
}
/* Prior R20M2 already inserts two holiday copy lines. Improve them rather than adding more height. */
#noticeDialog.campaign-welcome.tl-festival-scenes-on .tl-deluxe-welcome{
  max-width:100%;gap:2px;margin:4px 0 5px!important;padding:4px 7px;
  border-left:3px solid var(--tl-season-accent,#d77888);
  border-radius:5px 12px 12px 5px;
  background:linear-gradient(90deg,var(--tl-season-soft,#fff0f4),transparent);
}
#noticeDialog.campaign-welcome.tl-festival-scenes-on .tl-deluxe-heading{
  font-weight:900;line-height:1.12;color:var(--tl-season-text,#803452)
}
#noticeDialog.campaign-welcome.tl-festival-scenes-on .tl-deluxe-caption{
  font-size:clamp(9px,1vw,12px);line-height:1.25;
}
#noticeDialog.campaign-welcome.tl-festival-scenes-on .campaign-details{
  position:relative;isolation:isolate;
}
#noticeDialog.campaign-welcome.tl-festival-scenes-on .intro-explore-hero{
  box-shadow:0 9px 24px color-mix(in srgb,var(--tl-season-bg,#a1426b) 24%,transparent),inset 0 1px 0 #fff6;
}
#noticeDialog.campaign-welcome.tl-festival-scenes-on .tl-popup-info-card{
  border-color:var(--tl-season-line,#e2bdc3)!important;
}
#noticeDialog.campaign-welcome.tl-festival-scenes-on .campaign-host-card>.tl-festival-scene-label{
  animation:tl-festival-label-in .45s ease both;
}
@keyframes tl-festival-label-in {from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
/* Preserve requested geometry, regardless of seasonal artwork. */
@media(orientation:portrait) and (min-width:480px) and (min-height:760px){
 #noticeDialog.campaign-welcome{height:80vh!important;height:80dvh!important;max-height:80vh!important;max-height:80dvh!important}
 #noticeDialog.campaign-welcome[open]{grid-template-columns:minmax(0,55fr) minmax(0,45fr)!important}
}
/* Narrow screens: keep text readable. Scene is decorative and never forces scrolling. */
@media(max-width:650px){
 #noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene-label{font-size:8px;top:3px;left:4px;right:auto;padding:3px 5px;max-width:52%}
 #noticeDialog.campaign-welcome.tl-festival-scenes-on .tl-deluxe-welcome{margin:2px 0 4px!important;padding:3px 5px}
 #noticeDialog.campaign-welcome .campaign-host-card>.tl-festival-scene .tl-festival-particle{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 #noticeDialog.campaign-welcome .tl-festival-particle,
 #noticeDialog.campaign-welcome .tl-festival-scene-label{animation:none!important;transition:none!important}
}
@media print{#noticeDialog.campaign-welcome .tl-festival-scene-particles{display:none!important}}

/* ================================================================
   Thai Lotus R20.M9 — Popup split 55% posters / 45% information.
   Height stays 80dvh; themed art/mascot, slideshow & controls unchanged.
   Final override of legacy 60/40 portrait and 10/25 balance CSS.
   Phones narrower than 480 CSS px keep their readable stack layout.
   ================================================================ */
@media (orientation: portrait) and (min-width:480px) and (min-height:760px),
       (orientation: landscape) and (min-width:900px) and (min-height:600px) {
  #noticeDialog.campaign-welcome {
    height:80vh!important;
    height:80dvh!important;
    max-height:80vh!important;
    max-height:80dvh!important;
  }
  #noticeDialog.campaign-welcome[open] {
    display:grid!important;
    grid-template-columns:minmax(0,55fr) minmax(0,45fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    align-items:stretch!important;
  }
  #noticeDialog.campaign-welcome > .welcome-poster {
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
  }
  #noticeDialog.campaign-welcome > .campaign-details {
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-height:100%!important;
  }
  #noticeDialog.campaign-welcome .poster-viewport {
    min-width:0!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  #noticeDialog.campaign-welcome .poster-viewport img.poster-frame {
    object-fit:contain!important;
    object-position:center!important;
  }
}

/* R20.M11 — Welcome Popup: hide physical address and redundant thank-you only here. */
#noticeDialog.campaign-welcome .intro-location,
#noticeDialog.campaign-welcome .welcome-locality,
#noticeDialog.campaign-welcome .tl18-thankyou{display:none!important}
#noticeDialog.campaign-welcome .tl-popup-two-cards{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;width:100%!important}
#noticeDialog.campaign-welcome .intro-hours{grid-column:1/-1!important;min-width:0!important}
