/* Thai Lotus R20.10.9 — restore original framed popup, small bottom fullscreen icon.
   Scoped to welcome popup; no changes to any page elements outside the popup. */
#noticeDialog.campaign-welcome {
  position:fixed !important;
  inset:0 !important;
  margin:auto !important;
  width:min(1080px,94vw) !important;
  max-width:calc(100vw - 24px) !important;
  height:60vh !important;
  height:60dvh !important;
  max-height:60vh !important;
  max-height:60dvh !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:clamp(10px,1.2vw,18px) !important;
  overflow:hidden !important;
  background:linear-gradient(155deg,#fffaf9 0%,#fff 65%,#fff5f8 100%) !important;
  border:1px solid #f0dce2 !important;
  border-radius:clamp(15px,1.7vw,24px) !important;
  box-shadow:0 24px 90px #24121b66,0 2px 12px #612f4d20 !important;
  box-sizing:border-box !important;
}
#noticeDialog.campaign-welcome::backdrop {
  background:rgba(21,15,22,.70) !important;
  backdrop-filter:blur(5px) !important;
}
#noticeDialog.campaign-welcome[open] {
  display:grid !important;
  grid-template-columns:minmax(0,40fr) minmax(0,60fr) !important;
  grid-template-rows:minmax(0,1fr) !important;
  gap:clamp(7px,1.1vw,17px) !important;
  align-items:stretch !important;
}
/* Preserve the full poster image (no crop) on the left. */
#noticeDialog.campaign-welcome > .welcome-poster {
  grid-column:1 !important;
  grid-row:1 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:auto minmax(0,1fr) auto auto !important;
  min-width:0 !important;
  min-height:0 !important;
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  overflow:hidden !important;
  border-radius:12px !important;
}
#noticeDialog.campaign-welcome .poster-viewport {
  position:relative !important;
  display:grid !important;
  grid-row:2 !important;
  place-items:center !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
}
#noticeDialog.campaign-welcome .poster-viewport img.poster-frame {
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !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-width:100% !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  padding:clamp(8px,1vw,16px) clamp(7px,1vw,16px) 58px !important;
  scrollbar-width:thin;
  box-sizing:border-box !important;
}
#noticeDialog.campaign-welcome .campaign-host-card {
  display:grid !important;
  grid-template-columns:clamp(88px,11vw,134px) minmax(0,1fr) !important;
  gap:clamp(10px,1.5vw,24px) !important;
  align-items:center !important;
  padding:8px 10px 12px 6px !important;
  min-width:0 !important;
}
#noticeDialog.campaign-welcome .campaign-host-card > .welcome-host {
  grid-column:1 !important;
  grid-row:1 !important;
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  width:100% !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  margin:0 !important;
  display:grid !important;
  place-items:center !important;
  justify-self:center !important;
  isolation:isolate;
}
#noticeDialog.campaign-welcome .campaign-host-card > .campaign-host-hello {
  grid-column:2 !important;
  grid-row:1 !important;
  min-width:0 !important;
  padding-right:18px !important;
  overflow-wrap:anywhere;
}
#noticeDialog.campaign-welcome .welcome-host .intro-mascot-button {
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  width:80% !important;
  height:92% !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  margin:auto !important;
  z-index:3;
}
#noticeDialog.campaign-welcome .welcome-host .intro-mascot-button picture,
#noticeDialog.campaign-welcome .welcome-host .intro-mascot-button img {
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}
#noticeDialog.campaign-welcome .welcome-host > .welcome-orbit {
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  width:96% !important;
  height:96% !important;
  pointer-events:none !important;
}
#noticeDialog.campaign-welcome .welcome-host > .welcome-orbit.orbit-two {
  width:86% !important;
  height:86% !important;
}
#noticeDialog.campaign-welcome .tl-deluxe-mini-mascot {
  left:auto !important;
  right:3px !important;
  max-width:30px !important;
  opacity:.72 !important;
  pointer-events:none !important;
}
/* Small, discreet fullscreen toggle at bottom-right of the framed popup. */
#noticeDialog.campaign-welcome .tl-popup-fs-icon {
  appearance:none !important;
  -webkit-appearance:none !important;
  position:absolute !important;
  right:clamp(11px,1.3vw,20px) !important;
  bottom:clamp(11px,1.3vw,18px) !important;
  z-index:40 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:39px !important;
  height:39px !important;
  min-width:39px !important;
  min-height:39px !important;
  padding:0 !important;
  margin:0 !important;
  border-radius:12px !important;
  border:1px solid #dec0ce !important;
  background:rgba(255,255,255,.94) !important;
  color:#972b55 !important;
  box-shadow:0 3px 10px #4e1b3330 !important;
  cursor:pointer !important;
  touch-action:manipulation !important;
}
#noticeDialog.campaign-welcome .tl-popup-fs-icon:hover {background:#fff1f6 !important;}
#noticeDialog.campaign-welcome .tl-popup-fs-icon:focus-visible {outline:3px solid #a62756;outline-offset:2px;}
#noticeDialog.campaign-welcome .tl-popup-fs-icon svg {width:19px;height:19px;pointer-events:none;}
#noticeDialog.campaign-welcome .tl-popup-fs-icon[hidden] {display:none !important;}
@media(max-width:850px){
  #noticeDialog.campaign-welcome .campaign-host-card {
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto !important;
    gap:7px !important;
    padding:7px 5px 10px !important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host {
    grid-column:1 !important;grid-row:1 !important;
    width:clamp(72px,12vw,110px) !important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .campaign-host-hello {
    grid-column:1 !important;grid-row:2 !important;
    text-align:center !important;
    padding-right:3px !important;
  }
  #noticeDialog.campaign-welcome .intro-details {grid-template-columns:minmax(0,1fr) !important;}
}
@media(max-width:600px){
  #noticeDialog.campaign-welcome {
    width:calc(100vw - 18px) !important;
    max-width:calc(100vw - 18px) !important;
    height:60vh !important;
    height:60dvh !important;
    max-height:60vh !important;
    height:60dvh !important;
    padding:8px !important;
    border-radius:15px !important;
  }
  #noticeDialog.campaign-welcome[open] {
    grid-template-columns:minmax(0,40fr) minmax(0,60fr) !important;
    gap:5px !important;
  }
  #noticeDialog.campaign-welcome > .campaign-details {padding:7px 5px 54px !important;}
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host {
    width:clamp(64px,18vw,86px) !important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello #noticeHeading {
    font-size:clamp(16px,4.3vw,20px) !important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello .intro-lead {font-size:11px !important;}
  #noticeDialog.campaign-welcome .intro-bottom-row {grid-template-columns:minmax(0,1fr) !important;}
  #noticeDialog.campaign-welcome .tl-popup-fs-icon {
    right:10px !important;bottom:10px !important;
    width:35px !important;height:35px !important;
    min-width:35px !important;min-height:35px !important;
    border-radius:10px !important;
  }
}
@media(max-width:360px){
  #noticeDialog.campaign-welcome[open] {grid-template-columns:minmax(0,39fr) minmax(0,61fr) !important;}
  #noticeDialog.campaign-welcome .tl-deluxe-mini-mascot {display:none !important;}
}
@media(prefers-reduced-motion:reduce){
  #noticeDialog.campaign-welcome .tl-popup-fs-icon{transition:none !important;animation:none !important;}
}
