/* Visual V2. Scoped presentation only; lifecycle, settings, frequency and close gate are unchanged. */
#xa166PopupRoot{position:fixed;inset:0;z-index:80;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#23392d;box-sizing:border-box}
#xa166PopupRoot *{box-sizing:border-box}
#xa166PopupRoot .xa166-popup__overlay{height:100%;display:flex;align-items:center;justify-content:center;padding:30px 12px 18px;padding-top:max(30px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom));background:rgba(18,36,29,.64)}
@supports(backdrop-filter:blur(2px)){#xa166PopupRoot .xa166-popup__overlay{backdrop-filter:blur(2px)}}
#xa166PopupRoot .xa166-popup__dialog{position:relative;isolation:isolate;width:100%;max-width:410px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;border-radius:26px;background:radial-gradient(ellipse at 0 40%,rgba(255,255,240,.94),transparent 54%),linear-gradient(150deg,#effbea,#dff4e4 58%,#eef8e8);border:1px solid #fff9df;box-shadow:0 22px 58px rgba(8,35,22,.34),inset 0 0 0 4px rgba(255,255,255,.42);outline:none;animation:xa166PopupEnter 210ms ease-out both}
#xa166PopupRoot .xa166-popup__header{position:relative;flex:0 0 32px;z-index:4}
#xa166PopupRoot .xa166-popup__plaque{position:absolute;top:-16px;left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;justify-content:center;min-width:152px;height:40px;padding:0 21px;background:linear-gradient(110deg,#eb382b,#f66a28);border:1px solid #ffe8ae;border-radius:12px;box-shadow:0 5px 0 rgba(177,77,30,.09),0 5px 13px rgba(219,68,29,.22),inset 0 1px 0 rgba(255,255,255,.65);color:#fff;font-weight:800;font-size:19px;letter-spacing:1px;white-space:nowrap}
#xa166PopupRoot .xa166-popup__announcement-icon{position:relative;width:19px;height:17px;flex-shrink:0;border-radius:3px;background:#fff;clip-path:polygon(0 27%,33% 27%,85% 0,85% 100%,33% 74%,30% 100%,10% 100%,10% 74%,0 74%);transform:rotate(-8deg)}
#xa166PopupRoot .xa166-popup__close{position:absolute;top:3px;right:9px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(255,255,255,.83);box-shadow:0 2px 5px rgba(38,73,42,.05);color:#507253;font-size:29px;font-weight:400;cursor:pointer}
#xa166PopupRoot .xa166-popup__close:disabled{font-size:13px;font-weight:700;color:#728b74;cursor:default}
#xa166PopupRoot .xa166-popup__body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b6cfba transparent;padding:5px 16px 15px;border-radius:0 0 25px 25px;text-align:center}
#xa166PopupRoot .xa166-popup__title{margin:4px 0 5px;color:#263a2c;font-size:20px;font-weight:850;line-height:1.4;letter-spacing:-.55px;overflow-wrap:anywhere}
#xa166PopupRoot .xa166-popup__title-number{color:#e34727;font-size:1.28em;font-weight:900;letter-spacing:-.8px;text-shadow:0 1px 0 #fff}
#xa166PopupRoot .xa166-popup__notes{display:flex;flex-wrap:wrap;justify-content:center;gap:0;margin:2px 0 8px;font-size:12px;line-height:1.45;color:#5e7663}
#xa166PopupRoot .xa166-popup__notes span+span:before{content:"｜";padding:0 7px;color:#a4b5a1}
#xa166PopupRoot .xa166-popup__tags{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 0 2px}
#xa166PopupRoot .xa166-popup__tags span{display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;color:#ce442b;background:linear-gradient(#fff9f0,#ffecd9);border:1px solid #f0c7a4;border-radius:7px;font-size:13px;font-weight:750;line-height:1.35;box-shadow:inset 0 1px 0 #fff}
#xa166PopupRoot .xa166-popup__visual{position:relative;height:198px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:2px -3px 4px;background:radial-gradient(ellipse at 50% 56%,rgba(255,255,255,.9),transparent 62%);isolation:isolate}
#xa166PopupRoot .xa166-popup__visual:before{content:"";position:absolute;inset:15% 13% 5%;z-index:-1;background:radial-gradient(ellipse,#fffad9 0%,rgba(255,239,171,.35) 40%,transparent 70%);border-radius:50%}
#xa166PopupRoot .xa166-popup__visual img{position:relative;display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(47,94,51,.12))}
#xa166PopupRoot .xa166-popup__placeholder{position:relative;margin-top:11px;font-size:138px;line-height:1;font-weight:950;font-style:italic;letter-spacing:-9px;padding:0 13px 7px 0;color:#f24822;background:linear-gradient(180deg,#ff9a44 12%,#ff5624 47%,#df251f 81%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 2px 0 #fff9d5) drop-shadow(0 5px 0 #deac58) drop-shadow(0 7px 0 #a25925) drop-shadow(0 10px 7px rgba(122,64,25,.13));z-index:2}
#xa166PopupRoot .xa166-popup__crown{position:absolute;top:9px;left:50%;transform:translateX(-42%) rotate(-7deg);width:78px;height:40px;z-index:3;background:linear-gradient(130deg,#d88617,#ffe797 25%,#f9bd35 60%,#cb851a);clip-path:polygon(0 13%,27% 42%,48% 0,71% 42%,100% 8%,87% 83%,12% 83%);filter:drop-shadow(0 2px 0 #b77b19)}
#xa166PopupRoot .xa166-popup__crown:after{content:"";position:absolute;left:18%;right:18%;bottom:20%;height:6px;background:#ffeda1;border-radius:3px;box-shadow:0 -12px 0 -2px #ffe3a0}
#xa166PopupRoot .xa166-popup__placeholder-note{position:absolute;bottom:2px;font-size:10px;font-weight:500;letter-spacing:.2px;color:#6f8063;background:rgba(255,255,243,.76);padding:3px 9px;border-radius:20px;z-index:4}
#xa166PopupRoot .xa166-popup__ball{position:absolute;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-family:Arial,sans-serif;font-size:16px;font-weight:800;color:#fff;border:2px solid rgba(255,255,255,.85);box-shadow:0 3px 4px rgba(44,74,41,.16),inset -4px -5px 5px rgba(0,0,0,.12);z-index:1}
#xa166PopupRoot .xa166-popup__ball--0{left:14%;bottom:37px;background:radial-gradient(circle at 30% 20%,#ffbba0,#ee5235 65%);transform:rotate(-17deg)}
#xa166PopupRoot .xa166-popup__ball--1{right:11%;top:57px;background:radial-gradient(circle at 30% 20%,#e9fada,#51a566 65%);transform:rotate(13deg)}
#xa166PopupRoot .xa166-popup__ball--2{left:8%;top:43px;width:26px;height:26px;font-size:13px;background:radial-gradient(circle at 30% 20%,#c6e9ff,#5b9bbd 65%);transform:rotate(-9deg)}
#xa166PopupRoot .xa166-popup__ball--3{right:9%;bottom:32px;background:radial-gradient(circle at 30% 20%,#ffc994,#ef8b34 65%);transform:rotate(18deg)}
#xa166PopupRoot .xa166-popup__coin{position:absolute;width:27px;height:18px;border-radius:50%;background:linear-gradient(140deg,#ffe18b,#eaaa29 65%,#ca8419);border:2px solid #f8d569;box-shadow:0 3px 0 #be821c,inset 0 0 0 2px #fbd671;z-index:1}
#xa166PopupRoot .xa166-popup__coin--0{left:6%;bottom:23px;transform:rotate(-25deg)}
#xa166PopupRoot .xa166-popup__coin--1{right:16%;bottom:19px;transform:rotate(18deg)}
#xa166PopupRoot .xa166-popup__coin--2{right:5%;top:31px;width:21px;height:13px;transform:rotate(38deg)}
#xa166PopupRoot .xa166-popup__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:7px;margin:3px 0 0}
#xa166PopupRoot .xa166-popup__card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:88px;padding:10px 5px;border:1px solid #eacda3;border-radius:14px;background:linear-gradient(145deg,#fffdf6,#fff3dc);box-shadow:0 4px 8px rgba(77,105,61,.08),inset 0 1px 0 #fff;overflow-wrap:anywhere;position:relative}
#xa166PopupRoot .xa166-popup__card:before{content:"";position:absolute;top:0;left:22%;right:22%;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#eabe68,transparent)}
#xa166PopupRoot .xa166-popup__card-title{display:block;color:#dd4429;font-size:21px;font-weight:850;line-height:1.25;letter-spacing:-.7px}
#xa166PopupRoot .xa166-popup__card--1.has-odds .xa166-popup__card-title{font-size:12px;line-height:1.2;letter-spacing:0}
#xa166PopupRoot .xa166-popup__odds{display:block;font-size:27px;font-weight:900;line-height:1.15;letter-spacing:-.9px}
#xa166PopupRoot .xa166-popup__card-subtitle{display:block;margin-top:5px;font-size:14px;font-weight:650;line-height:1.4;color:#664a34;white-space:pre-wrap}
#xa166PopupRoot .xa166-popup__action{position:sticky;bottom:0;z-index:3;margin:10px 0 0;padding:0 0 5px;background:linear-gradient(0deg,#e9f5e8 0%,#e9f5e8 70%,rgba(233,245,232,0));border-radius:28px}
#xa166PopupRoot .xa166-popup__cta{position:relative;display:flex;gap:9px;justify-content:center;align-items:center;min-height:50px;width:100%;padding:10px 35px;background:linear-gradient(105deg,#fb732d,#ef4029 76%);border:1px solid #f66f37;border-radius:28px;box-shadow:0 5px 0 #d63e22,0 8px 13px rgba(213,71,31,.16),inset 0 1px 0 rgba(255,244,214,.75);color:#fff;text-decoration:none;font-size:21px;font-weight:800;line-height:1.35;overflow-wrap:anywhere;transition:filter 150ms,transform 150ms}
#xa166PopupRoot .xa166-popup__cta:before{content:"";position:absolute;left:18%;right:18%;top:1px;height:9px;border-radius:50%;background:linear-gradient(rgba(255,255,255,.25),transparent);pointer-events:none}
#xa166PopupRoot .xa166-popup__cta:hover{filter:brightness(1.05)}
#xa166PopupRoot .xa166-popup__cta:active{transform:translateY(2px)}
#xa166PopupRoot .xa166-popup__chat-icon{position:relative;flex:0 0 21px;width:21px;height:17px;border:2px solid #fff;border-radius:6px}
#xa166PopupRoot .xa166-popup__chat-icon:before{content:"";position:absolute;left:3px;right:3px;top:5px;border-top:2px solid #fff}
#xa166PopupRoot .xa166-popup__chat-icon:after{content:"";position:absolute;left:2px;bottom:-5px;width:6px;height:6px;border-left:2px solid #fff;transform:skewY(-35deg)}
#xa166PopupRoot .xa166-popup__cta-arrow{position:absolute;right:20px;font-family:Arial,sans-serif;font-size:29px;font-weight:400;line-height:1}
#xa166PopupRoot .xa166-popup__services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;margin:12px 0 0}
#xa166PopupRoot .xa166-popup__service{display:flex;align-items:center;gap:8px;min-height:43px;padding:5px 7px;text-align:left;border-radius:9px;border:1px solid rgba(177,201,164,.64);background:rgba(255,255,248,.69);text-decoration:none;color:#2e4432;transition:background 150ms}
#xa166PopupRoot .xa166-popup__service:hover{background:#fffdf4}
#xa166PopupRoot .xa166-popup__service-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:1px}
#xa166PopupRoot .xa166-popup__service-copy strong{font-size:13px;font-weight:750;line-height:1.3;overflow-wrap:anywhere}
#xa166PopupRoot .xa166-popup__service-copy>span{font-size:10px;line-height:1.25;color:#7a8a75}
#xa166PopupRoot .xa166-popup__service-arrow{font-family:Arial,sans-serif;font-size:18px;color:#b2bea9}
#xa166PopupRoot .xa166-popup__service-icon{flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;color:white;font-family:Arial,sans-serif;font-size:15px;line-height:1;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
#xa166PopupRoot .xa166-popup__service-icon:before{content:"+";font-weight:700}
#xa166PopupRoot .xa166-popup__service-icon--account{background:linear-gradient(135deg,#f4b669,#df8d35)}
#xa166PopupRoot .xa166-popup__service-icon--transfer{background:linear-gradient(135deg,#8cc2e5,#5e9acb)}
#xa166PopupRoot .xa166-popup__service-icon--transfer:before{content:"↕"}
#xa166PopupRoot .xa166-popup__service-icon--odds{background:linear-gradient(135deg,#ec9b83,#d86448)}
#xa166PopupRoot .xa166-popup__service-icon--odds:before{content:"%"}
#xa166PopupRoot .xa166-popup__service-icon--rules{background:linear-gradient(135deg,#a5c989,#729d58)}
#xa166PopupRoot .xa166-popup__service-icon--rules:before{content:"≡"}
#xa166PopupRoot .xa166-popup__service-icon--support{background:linear-gradient(135deg,#aaacde,#7e80b9)}
#xa166PopupRoot .xa166-popup__service-icon--support:before{content:"···"}
#xa166PopupRoot .xa166-popup__service-icon--partner{background:linear-gradient(135deg,#dbc27b,#b79a4c)}
#xa166PopupRoot .xa166-popup__service-icon--partner:before{content:"◇"}
#xa166PopupRoot .xa166-popup__slogan{display:flex;justify-content:center;align-items:center;gap:3px;margin:11px 0 0;font-size:12px;font-weight:750;line-height:1.4;color:#31402d;flex-wrap:wrap}
#xa166PopupRoot .xa166-popup__slogan strong{font-size:15px;font-weight:850;color:#dd5a2c}
#xa166PopupRoot .xa166-popup__slogan-crown{color:#c7a359;font-size:15px}
#xa166PopupRoot .xa166-popup__optout{display:block;min-height:40px;margin:10px auto 0;padding:8px 25px;border:1px solid #d4e3cd;border-radius:22px;background:rgba(255,255,255,.83);color:#657c60;font-size:12px;text-decoration:none;cursor:pointer}
#xa166PopupRoot .xa166-popup__optout:disabled{opacity:.45;cursor:default}
#xa166PopupRoot .xa166-popup__preview-note{margin:7px 0 0;color:#7a8970;font-size:10px;line-height:1.3}
#xa166PopupRoot button:focus-visible,#xa166PopupRoot a:focus-visible{outline:3px solid #44774e;outline-offset:2px}
@keyframes xa166PopupEnter{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@media(max-width:370px){#xa166PopupRoot .xa166-popup__body{padding-left:12px;padding-right:12px}#xa166PopupRoot .xa166-popup__title{font-size:18px}#xa166PopupRoot .xa166-popup__tags{gap:4px}#xa166PopupRoot .xa166-popup__tags span{padding:3px 6px;font-size:12px}#xa166PopupRoot .xa166-popup__card-title{font-size:19px}#xa166PopupRoot .xa166-popup__odds{font-size:25px}#xa166PopupRoot .xa166-popup__service{gap:5px;padding-left:5px;padding-right:5px}}
@media(max-height:740px){#xa166PopupRoot .xa166-popup__visual{height:158px}#xa166PopupRoot .xa166-popup__placeholder{font-size:114px}#xa166PopupRoot .xa166-popup__crown{top:1px;width:64px;height:33px}#xa166PopupRoot .xa166-popup__card{min-height:79px}#xa166PopupRoot .xa166-popup__body{padding-bottom:10px}}
@media(max-height:480px){#xa166PopupRoot .xa166-popup__visual{height:120px}#xa166PopupRoot .xa166-popup__placeholder{font-size:90px}#xa166PopupRoot .xa166-popup__crown{width:50px;height:26px}#xa166PopupRoot .xa166-popup__ball{width:23px;height:23px;font-size:12px}#xa166PopupRoot .xa166-popup__service{min-height:34px;padding-top:3px;padding-bottom:3px}#xa166PopupRoot .xa166-popup__service-copy>span{display:none}#xa166PopupRoot .xa166-popup__header{flex-basis:29px}}
@media(prefers-reduced-motion:reduce){#xa166PopupRoot .xa166-popup__dialog{animation:none}#xa166PopupRoot *{transition:none;scroll-behavior:auto}}

/* Mobile Compact V3: mobile-only dimensions/density. All V2 desktop rules remain untouched. */
@media(max-width:600px){
  #xa166PopupRoot .xa166-popup__overlay{padding:24px 18px 16px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom))}
  #xa166PopupRoot .xa166-popup__dialog{width:calc(100vw - 36px);max-width:360px;max-height:84vh;max-height:84dvh;border-radius:24px}
  #xa166PopupRoot .xa166-popup__plaque{top:-14px;min-width:136px;height:35px;padding:0 16px;gap:7px;font-size:17px;letter-spacing:.6px;border-radius:11px;box-shadow:0 3px 0 rgba(177,77,30,.08),0 4px 9px rgba(219,68,29,.18),inset 0 1px 0 rgba(255,255,255,.65)}
  #xa166PopupRoot .xa166-popup__announcement-icon{width:17px;height:15px}
  #xa166PopupRoot .xa166-popup__body{padding:4px 12px 11px;border-radius:0 0 23px 23px}
  #xa166PopupRoot .xa166-popup__title{margin:3px 0 3px;font-size:19px;line-height:1.35;letter-spacing:-.55px}
  #xa166PopupRoot .xa166-popup__notes{margin:1px 0 5px;line-height:1.35}
  #xa166PopupRoot .xa166-popup__notes span+span:before{padding:0 5px}
  #xa166PopupRoot .xa166-popup__tags{gap:5px;margin-bottom:1px}
  #xa166PopupRoot .xa166-popup__tags span{min-height:22px;padding:2px 7px;font-size:12.5px;line-height:1.3}
  #xa166PopupRoot .xa166-popup__visual{height:154px;margin:1px -2px 3px}
  #xa166PopupRoot .xa166-popup__placeholder{margin-top:9px;font-size:108px;letter-spacing:-7px;padding:0 10px 5px 0;filter:drop-shadow(0 2px 0 #fff9d5) drop-shadow(0 4px 0 #deac58) drop-shadow(0 6px 0 #a25925) drop-shadow(0 8px 5px rgba(122,64,25,.13))}
  #xa166PopupRoot .xa166-popup__crown{top:7px;width:61px;height:31px}
  #xa166PopupRoot .xa166-popup__placeholder-note{bottom:1px;padding:2px 7px;font-size:10px}
  #xa166PopupRoot .xa166-popup__ball{width:27px;height:27px;font-size:13px;box-shadow:0 2px 3px rgba(44,74,41,.16),inset -3px -4px 4px rgba(0,0,0,.12)}
  #xa166PopupRoot .xa166-popup__ball--0{bottom:29px}
  #xa166PopupRoot .xa166-popup__ball--1{top:45px}
  #xa166PopupRoot .xa166-popup__ball--2{top:34px;width:20px;height:20px;font-size:10px}
  #xa166PopupRoot .xa166-popup__ball--3{bottom:25px}
  #xa166PopupRoot .xa166-popup__coin{width:21px;height:14px;box-shadow:0 2px 0 #be821c,inset 0 0 0 1px #fbd671}
  #xa166PopupRoot .xa166-popup__coin--0{bottom:18px}
  #xa166PopupRoot .xa166-popup__coin--1{bottom:15px}
  #xa166PopupRoot .xa166-popup__coin--2{top:24px;width:16px;height:10px}
  #xa166PopupRoot .xa166-popup__cards{gap:6px;margin-top:2px}
  #xa166PopupRoot .xa166-popup__card{min-height:82px;padding:7px 4px}
  #xa166PopupRoot .xa166-popup__odds{font-size:26px;line-height:1.13}
  #xa166PopupRoot .xa166-popup__card-subtitle{margin-top:3px;line-height:1.3}
  #xa166PopupRoot .xa166-popup__action{margin-top:7px;padding-bottom:3px}
  #xa166PopupRoot .xa166-popup__cta{min-height:50px;padding:8px 31px;line-height:1.25;box-shadow:0 3px 0 #d63e22,0 5px 9px rgba(213,71,31,.14),inset 0 1px 0 rgba(255,244,214,.75)}
  #xa166PopupRoot .xa166-popup__cta-arrow{right:17px}
  #xa166PopupRoot .xa166-popup__services{gap:4px 6px;margin-top:8px}
  #xa166PopupRoot .xa166-popup__service{min-height:38px;padding:3px 6px;gap:6px}
  #xa166PopupRoot .xa166-popup__service-icon{flex-basis:23px;width:23px;height:23px;font-size:13px}
  #xa166PopupRoot .xa166-popup__service-copy{gap:0}
  #xa166PopupRoot .xa166-popup__service-copy strong{font-size:13px;line-height:1.25}
  #xa166PopupRoot .xa166-popup__service-copy>span{font-size:9.5px;line-height:1.15}
  #xa166PopupRoot .xa166-popup__slogan{margin-top:7px;font-size:11.5px;line-height:1.3;gap:2px}
  #xa166PopupRoot .xa166-popup__slogan strong{font-size:14px}
  #xa166PopupRoot .xa166-popup__slogan-crown{font-size:14px}
  #xa166PopupRoot .xa166-popup__optout{margin-top:7px}
  #xa166PopupRoot .xa166-popup__preview-note{margin-top:4px;line-height:1.2}
}
/* Browser chrome can reduce a portrait iPhone's actual CSS viewport. Compress gaps before scrolling. */
@media(max-width:600px) and (max-height:760px){
  #xa166PopupRoot .xa166-popup__body{padding-bottom:8px}
  #xa166PopupRoot .xa166-popup__notes{margin-bottom:4px}
  #xa166PopupRoot .xa166-popup__visual{height:148px}
  #xa166PopupRoot .xa166-popup__placeholder{font-size:104px}
  #xa166PopupRoot .xa166-popup__crown{top:6px;width:59px;height:30px}
  #xa166PopupRoot .xa166-popup__action{margin-top:5px}
  #xa166PopupRoot .xa166-popup__service{min-height:36px}
  #xa166PopupRoot .xa166-popup__slogan{margin-top:5px}
  #xa166PopupRoot .xa166-popup__preview-note{margin-top:3px}
}
@media(max-width:600px) and (max-height:700px){
  #xa166PopupRoot .xa166-popup__dialog{max-height:86vh;max-height:86dvh}
}
@media(max-width:600px) and (max-height:480px){
  #xa166PopupRoot .xa166-popup__visual{height:116px}
  #xa166PopupRoot .xa166-popup__placeholder{font-size:82px;margin-top:7px}
  #xa166PopupRoot .xa166-popup__crown{top:2px;width:46px;height:24px}
  #xa166PopupRoot .xa166-popup__ball{width:21px;height:21px;font-size:10px}
  #xa166PopupRoot .xa166-popup__ball--0{bottom:22px}
  #xa166PopupRoot .xa166-popup__ball--1{top:34px}
  #xa166PopupRoot .xa166-popup__ball--2{top:26px;width:16px;height:16px;font-size:9px}
  #xa166PopupRoot .xa166-popup__ball--3{bottom:19px}
  #xa166PopupRoot .xa166-popup__coin{width:16px;height:11px}
  #xa166PopupRoot .xa166-popup__coin--0{bottom:14px}
  #xa166PopupRoot .xa166-popup__coin--1{bottom:11px}
  #xa166PopupRoot .xa166-popup__coin--2{top:18px;width:12px;height:8px}
  #xa166PopupRoot .xa166-popup__service{min-height:34px}
}

/* Compact V4 stacking fix: existing fixed site navigation is z-index:1000.
   1200 is deliberately bounded below the existing 9999+ business layers. */
#xa166PopupRoot{z-index:1200}
/* Small floating mobile ad: native geometry, not a whole-dialog scale. */
@media(max-width:600px){
  #xa166PopupRoot .xa166-popup__overlay{padding:24px 36px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
  #xa166PopupRoot .xa166-popup__dialog{width:calc(100vw - 72px);max-width:306px;max-height:min(78vh,540px);max-height:min(78dvh,540px);border-radius:21px;box-shadow:0 14px 36px rgba(8,35,22,.28),inset 0 0 0 3px rgba(255,255,255,.42)}
  #xa166PopupRoot .xa166-popup__header{flex-basis:28px}
  #xa166PopupRoot .xa166-popup__plaque{top:-12px;min-width:118px;height:31px;padding:0 13px;gap:5px;font-size:14.5px;letter-spacing:.4px;border-radius:9px;box-shadow:0 2px 0 rgba(177,77,30,.08),0 3px 7px rgba(219,68,29,.16),inset 0 1px 0 rgba(255,255,255,.65)}
  #xa166PopupRoot .xa166-popup__announcement-icon{width:14px;height:12px}
  #xa166PopupRoot .xa166-popup__close{top:-7px;right:6px;font-size:26px}
  #xa166PopupRoot .xa166-popup__body{padding:2px 8px 4px;border-radius:0 0 20px 20px}
  #xa166PopupRoot .xa166-popup__title{margin:1px 0 2px;font-size:17px;line-height:1.2;letter-spacing:-.5px}
  #xa166PopupRoot .xa166-popup__notes{margin:0 0 2px;font-size:10px;line-height:1.2}
  #xa166PopupRoot .xa166-popup__notes span+span:before{padding:0 3px}
  #xa166PopupRoot .xa166-popup__tags{gap:3px;margin-bottom:0}
  #xa166PopupRoot .xa166-popup__tags span{min-height:18px;padding:1px 4px;font-size:11.4px;line-height:1.2;border-radius:5px}
  #xa166PopupRoot .xa166-popup__visual{height:105px;margin:0 -1px}
  #xa166PopupRoot .xa166-popup__placeholder{margin-top:6px;font-size:74px;letter-spacing:-4.8px;padding:0 7px 3px 0;filter:drop-shadow(0 1px 0 #fff9d5) drop-shadow(0 3px 0 #deac58) drop-shadow(0 4px 0 #a25925) drop-shadow(0 6px 4px rgba(122,64,25,.13))}
  #xa166PopupRoot .xa166-popup__crown{top:5px;width:42px;height:21px}
  #xa166PopupRoot .xa166-popup__placeholder-note{bottom:0;padding:1px 5px;font-size:8.5px;line-height:1.2}
  #xa166PopupRoot .xa166-popup__ball{width:19px;height:19px;font-size:9px;box-shadow:0 2px 2px rgba(44,74,41,.14),inset -2px -3px 3px rgba(0,0,0,.1)}
  #xa166PopupRoot .xa166-popup__ball--0{bottom:20px}
  #xa166PopupRoot .xa166-popup__ball--1{top:31px}
  #xa166PopupRoot .xa166-popup__ball--2{top:23px;width:14px;height:14px;font-size:8px}
  #xa166PopupRoot .xa166-popup__ball--3{bottom:17px}
  #xa166PopupRoot .xa166-popup__coin{width:14px;height:10px;box-shadow:0 2px 0 #be821c,inset 0 0 0 1px #fbd671}
  #xa166PopupRoot .xa166-popup__coin--0{bottom:12px}
  #xa166PopupRoot .xa166-popup__coin--1{bottom:10px}
  #xa166PopupRoot .xa166-popup__coin--2{top:16px;width:11px;height:7px}
  #xa166PopupRoot .xa166-popup__cards{gap:4px;margin-top:1px}
  #xa166PopupRoot .xa166-popup__card{min-height:62px;padding:3px 4px;border-radius:11px}
  #xa166PopupRoot .xa166-popup__card-title{font-size:17.5px;line-height:1.15;letter-spacing:-.5px}
  #xa166PopupRoot .xa166-popup__card--1.has-odds .xa166-popup__card-title{font-size:10px;line-height:1.1}
  #xa166PopupRoot .xa166-popup__odds{font-size:23px;line-height:1.05;letter-spacing:-.6px}
  #xa166PopupRoot .xa166-popup__card-subtitle{margin-top:1px;font-size:12px;line-height:1.15}
  #xa166PopupRoot .xa166-popup__action{margin-top:3px;padding-bottom:1px;border-radius:23px}
  #xa166PopupRoot .xa166-popup__cta{min-height:42px;padding:6px 24px;gap:6px;font-size:18px;line-height:1.2;border-radius:23px;box-shadow:0 2px 0 #d63e22,0 4px 7px rgba(213,71,31,.13),inset 0 1px 0 rgba(255,244,214,.75)}
  #xa166PopupRoot .xa166-popup__cta-arrow{right:13px;font-size:24px}
  #xa166PopupRoot .xa166-popup__chat-icon{flex-basis:17px;width:17px;height:14px;border-radius:5px}
  #xa166PopupRoot .xa166-popup__chat-icon:before{left:2px;right:2px;top:4px}
  #xa166PopupRoot .xa166-popup__chat-icon:after{width:5px;height:5px;bottom:-4px}
  #xa166PopupRoot .xa166-popup__services{gap:3px 4px;margin-top:4px}
  #xa166PopupRoot .xa166-popup__service{min-height:30px;padding:2px 4px;gap:4px;border-radius:7px}
  #xa166PopupRoot .xa166-popup__service-icon{flex-basis:19px;width:19px;height:19px;font-size:11px}
  #xa166PopupRoot .xa166-popup__service-copy strong{font-size:11.5px;line-height:1.15}
  #xa166PopupRoot .xa166-popup__service-copy>span{font-size:8.5px;line-height:1.1}
  #xa166PopupRoot .xa166-popup__service-arrow{font-size:15px}
  #xa166PopupRoot .xa166-popup__slogan{margin:3px 0 0;gap:1.5px;font-size:9.5px;line-height:1.15;flex-wrap:nowrap;white-space:nowrap}
  #xa166PopupRoot .xa166-popup__slogan strong{font-size:11px}
  #xa166PopupRoot .xa166-popup__slogan-crown{font-size:11px}
  #xa166PopupRoot .xa166-popup__optout{margin-top:4px;padding:5px 18px;font-size:11px}
  #xa166PopupRoot .xa166-popup__preview-note{margin-top:2px;font-size:8.5px;line-height:1.1}
}

/* Visual V5 skin only. The V4 geometry above is deliberately frozen. */
#xa166PopupRoot{color:#183529}
#xa166PopupRoot .xa166-popup__dialog{background:radial-gradient(ellipse at 50% 7%,rgba(221,245,234,.92),transparent 52%),radial-gradient(ellipse at 52% 44%,rgba(255,216,106,.22),transparent 46%),linear-gradient(160deg,#fffdf3,#f1f9ec 58%,#fffcf1);border-color:#fff6d5;box-shadow:0 15px 38px rgba(16,53,35,.22),inset 0 0 0 3px rgba(255,255,247,.7)}
#xa166PopupRoot .xa166-popup__dialog:before{content:"";position:absolute;inset:3px;border-radius:inherit;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at -22% 52%,transparent 54%,rgba(245,183,46,.1) 55%,transparent 60%),radial-gradient(ellipse at 121% 42%,transparent 58%,rgba(249,209,115,.12) 59%,transparent 64%)}
#xa166PopupRoot .xa166-popup__plaque{background:linear-gradient(105deg,#ff6a22,#ff3b21 70%,#e93724);border-color:#ffe0a2;box-shadow:0 2px 5px rgba(212,69,28,.17),inset 0 1px 0 rgba(255,255,245,.75)}
#xa166PopupRoot .xa166-popup__title{color:#183529}
#xa166PopupRoot .xa166-popup__title-number{color:#ef4224}
#xa166PopupRoot .xa166-popup__visual:before{background:radial-gradient(ellipse,rgba(255,255,247,.95) 0%,rgba(255,216,106,.27) 38%,transparent 72%);box-shadow:inset 0 -9px 12px -12px rgba(235,177,46,.4)}
#xa166PopupRoot .xa166-popup__visual img{filter:drop-shadow(0 3px 4px rgba(162,128,41,.15))}
#xa166PopupRoot .xa166-popup__card{background:linear-gradient(140deg,#fffef7,#fff6e5);border-color:#ebd3a8;box-shadow:0 3px 7px rgba(115,92,45,.07),inset 0 1px 0 #fff}
#xa166PopupRoot .xa166-popup__card-title{color:#ee4627}
#xa166PopupRoot .xa166-popup__card-subtitle{color:#654c36}
#xa166PopupRoot .xa166-popup__badge{position:absolute;inset:3px;display:none;width:calc(100% - 6px);height:calc(100% - 6px);object-fit:contain;border-radius:8px;pointer-events:none}
#xa166PopupRoot .xa166-popup__card.has-badge>.xa166-popup__card-title,#xa166PopupRoot .xa166-popup__card.has-badge>.xa166-popup__card-subtitle{visibility:hidden}
#xa166PopupRoot .xa166-popup__card.has-badge>.xa166-popup__badge{display:block}
#xa166PopupRoot .xa166-popup__cta{background:linear-gradient(108deg,#ff7827,#ff3b21 53%,#de2b27);border-color:#f46031;box-shadow:0 2px 0 #c94124,0 4px 8px rgba(218,63,26,.14),inset 0 1px 0 rgba(255,255,255,.72)}
#xa166PopupRoot .xa166-popup__cta:before{background:linear-gradient(rgba(255,255,255,.35),transparent)}
#xa166PopupRoot .xa166-popup__service{background:rgba(255,254,248,.8);border-color:rgba(193,208,166,.6);box-shadow:0 1px 3px rgba(53,78,41,.035)}
#xa166PopupRoot .xa166-popup__service-copy strong{color:#28362e}
#xa166PopupRoot .xa166-popup__service-copy>span{color:#8b947f}
#xa166PopupRoot .xa166-popup__service-arrow{color:#bac5ad}
#xa166PopupRoot .xa166-popup__service-icon{box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset -2px -2px 3px rgba(38,62,22,.09)}
#xa166PopupRoot .xa166-popup__service-icon--account{background:linear-gradient(145deg,#efbc70,#d9953e)}
#xa166PopupRoot .xa166-popup__service-icon--transfer{background:linear-gradient(145deg,#8fbfdc,#529bcd)}
#xa166PopupRoot .xa166-popup__service-icon--odds{background:linear-gradient(145deg,#efae93,#da745a)}
#xa166PopupRoot .xa166-popup__service-icon--rules{background:linear-gradient(145deg,#b5ca9c,#8eab6d)}
#xa166PopupRoot .xa166-popup__service-icon--support{background:linear-gradient(145deg,#b1b2d4,#9092b6)}
#xa166PopupRoot .xa166-popup__service-icon--partner{background:linear-gradient(145deg,#e3d094,#c0a764)}
/* Administration is scoped separately; does not affect advertisement dimensions. */
#admin-popup-ad .xa166-admin{max-width:1100px;padding:22px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;background:#fff;border:1px solid #e1e8de;border-radius:14px;color:#28362e}
#admin-popup-ad .xa166-admin h2{font-size:22px;font-weight:750;margin:0 0 8px}
#admin-popup-ad .xa166-admin__intro,#admin-popup-ad .xa166-admin__hint{font-size:13px;line-height:1.5;color:#71806c;margin:4px 0 12px}
#admin-popup-ad .xa166-admin__section{border:1px solid #dce6d5;border-radius:11px;padding:14px;margin:18px 0}
#admin-popup-ad .xa166-admin__section legend{padding:0 8px;font-size:15px;font-weight:750;color:#3b6648}
#admin-popup-ad .xa166-admin__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;align-items:start}
#admin-popup-ad .xa166-admin__field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#56664f;margin-bottom:8px;min-width:0}
#admin-popup-ad .xa166-admin__field input,#admin-popup-ad .xa166-admin__field textarea,#admin-popup-ad .xa166-admin__field select{box-sizing:border-box;width:100%;padding:8px;border:1px solid #cfdbc7;border-radius:7px;font:inherit;font-size:13px;background:#fff;color:#28362e}
#admin-popup-ad .xa166-admin__field input[readonly]{background:#f8faf6;color:#7f8a78}
#admin-popup-ad .xa166-admin__field.is-switch{flex-direction:row;align-items:center;justify-content:space-between}
#admin-popup-ad .xa166-admin__field.is-switch input{width:18px;height:18px}
#admin-popup-ad .xa166-admin__card,#admin-popup-ad .xa166-admin__service{border:1px solid #e4eadf;border-radius:9px;padding:12px;background:#fbfcf8;min-width:0}
#admin-popup-ad .xa166-admin__card h3{font-size:14px;font-weight:750;margin:0 0 10px}
#admin-popup-ad .xa166-admin__service summary{font-size:13px;font-weight:700;cursor:pointer;color:#49643f}
#admin-popup-ad .xa166-admin__service>.xa166-admin__grid{margin-top:12px}
#admin-popup-ad .xa166-admin__upload{width:100%;min-width:0}
#admin-popup-ad .xa166-admin__upload-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px;align-items:center}
#admin-popup-ad .xa166-admin__upload-actions input{font-size:12px;min-width:0;max-width:100%;flex:1}
#admin-popup-ad .xa166-admin__upload img{max-width:180px;max-height:100px;object-fit:contain;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 0/16px 16px;border:1px solid #e5ebdf;border-radius:7px}
#admin-popup-ad .xa166-admin button{padding:8px 14px;border:1px solid #cfdcc6;border-radius:7px;font-size:13px;cursor:pointer;background:#fff}
#admin-popup-ad .xa166-admin__actions{display:flex;gap:10px;background:rgba(255,255,255,.96);padding:12px 0;margin-top:14px;z-index:3}
#admin-popup-ad .xa166-admin__actions button[type=submit]{background:#356d4a;border-color:#356d4a;color:#fff}
#admin-popup-ad .xa166-admin button:disabled{opacity:.5;cursor:default}
#admin-popup-ad #popupAdStatus{font-size:13px;color:#356d4a;margin-top:10px}
#admin-popup-ad #popupAdStatus[data-error=true]{color:#b91c1c}
@media(max-width:500px){#admin-popup-ad .xa166-admin{padding:12px}#admin-popup-ad .xa166-admin__grid{grid-template-columns:minmax(0,1fr)}}

#admin-popup-ad .xa166-admin__services{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:500px){#admin-popup-ad .xa166-admin__services{grid-template-columns:minmax(0,1fr)}}

/* V5 card image fill fix: when the badge loads, the image is the card surface. */
#xa166PopupRoot .xa166-popup__card.has-badge{
  padding:0;
  overflow:hidden;
  background:transparent;
  border-color:rgba(224,180,92,.72);
  box-shadow:0 2px 6px rgba(115,92,45,.10);
}
#xa166PopupRoot .xa166-popup__card.has-badge:before{display:none}
#xa166PopupRoot .xa166-popup__card.has-badge>.xa166-popup__badge{
  display:block;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  object-fit:cover;
  border:0;
  border-radius:inherit;
  filter:none;
}

/* Rich announcement: only the existing header and action footer stay fixed. */
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__overlay{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__dialog{width:88vw;max-width:560px;height:auto;min-height:0;background:#fff;color:#202124;border:1px solid #e5e7eb;border-radius:18px}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__header{position:relative;min-height:58px;padding:8px 64px;gap:12px;color:#475569}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 112px);background:#b93832;color:#fff;padding:6px 14px;border-radius:5px;font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;text-align:center}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__close{position:absolute;top:7px;right:10px;flex-shrink:0;color:#475569;background:#f3f4f6;z-index:1}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll{flex:1 1 auto;min-height:0;padding:4px 18px 16px;text-align:left;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;overflow-wrap:anywhere;word-break:normal}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll p{margin:0 0 8px;font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll p:last-child{margin-bottom:0}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll p:empty{min-height:1.8em;margin-bottom:0}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-list{margin:0 0 8px;padding-inline-start:1.6em;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-item{padding-inline-start:.15em;white-space:pre-wrap;overflow-wrap:anywhere}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-link{color:#1769aa;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere;word-break:break-word}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-footer{flex:0 0 auto;display:flex;flex-direction:column;align-items:stretch;gap:2px;min-height:0;padding:6px 20px max(6px,env(safe-area-inset-bottom));border-top:1px solid #e5e7eb;background:#fff;text-align:center;overflow:visible}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-contact{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:8px 14px;border:0;border-radius:9px;background:#229ed9;color:#fff;font-size:15px;font-weight:650;line-height:1.45;text-decoration:none;text-align:center;white-space:normal;overflow-wrap:anywhere;word-break:break-word}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-contact:hover{background:#188cc5}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__optout{align-self:center;min-height:32px;margin:0 auto;padding:4px 12px;color:#596579;text-decoration:none}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__preview-note{margin:0;font-size:11px;color:#76808d}
@media(max-width:360px){#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll{padding:4px 16px 16px}#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__header{padding-inline:58px}#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-footer{padding-inline:12px}#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-contact{font-size:14px}}
@media(max-height:450px){#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__header{min-height:48px;padding-top:4px;padding-bottom:4px}#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__close{top:2px;right:8px}#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-footer{padding-top:4px;padding-bottom:4px}#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-contact{min-height:38px;padding-top:4px;padding-bottom:4px}}

#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__overlay{--xa-rich-safe-top:env(safe-area-inset-top,0px);--xa-rich-safe-bottom:env(safe-area-inset-bottom,0px);--xa-rich-safe-left:env(safe-area-inset-left,0px);--xa-rich-safe-right:env(safe-area-inset-right,0px);padding: max(24px,var(--xa-rich-safe-top),var(--xa-rich-safe-bottom)) max(12px,var(--xa-rich-safe-left),var(--xa-rich-safe-right))}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__dialog{max-width:min(560px,100%);max-height:min(78vh,calc(100vh - 48px - var(--xa-rich-safe-top) - var(--xa-rich-safe-bottom)));max-height:min(78dvh,calc(100dvh - 48px - var(--xa-rich-safe-top) - var(--xa-rich-safe-bottom)))}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__dialog:before{display:none}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__header{flex:0 0 52px;min-height:52px}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__label{top:-12px;transform:translateX(-50%);height:auto;min-height:34px;min-width:0;box-shadow:0 3px 8px #b9383233;border:1px solid #ffd6bd;letter-spacing:0}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll{font-size:16px;line-height:1.8;border-radius:0}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll li>p{margin-bottom:0}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-footer{border-radius:0 0 17px 17px}
#admin-popup-ad [hidden]{display:none!important}
#admin-popup-ad .xa166-admin__grid{grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr))}
#admin-popup-ad .rich-editor-canvas{font-size:16px;line-height:1.8;white-space:pre-wrap}
#admin-popup-ad .rich-editor-canvas p{margin:0 0 8px}
#admin-popup-ad .rich-editor-canvas p:last-child{margin-bottom:0}
#admin-popup-ad .rich-editor-canvas li>p{margin-bottom:0}
/* Keep each intentional empty paragraph as one line, without another paragraph margin. */
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll p.xa166-rich-empty-line,
#admin-popup-ad .rich-editor-canvas p.xa166-rich-empty-line{min-height:1.8em;margin:0}
#admin-popup-ad .rich-editor-shell .rich-editor-canvas ul,#admin-popup-ad .rich-editor-shell .rich-editor-canvas ol{margin:0 0 8px;padding-inline-start:1.6em;font-size:16px;line-height:1.8}
@font-face{font-family:'XA Popup Flags';src:url('/fonts/popup-noto-emoji-flags-v50.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+1F1E6-1F1FF}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll,#admin-popup-ad .rich-editor-canvas{font-family:'XA Popup Flags',-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei','Apple Color Emoji','Segoe UI Emoji',sans-serif}

/* Explicit draft-only paragraph review, separate from the advertisement. */
#popupAdParagraphDialog{box-sizing:border-box;width:min(1100px,94vw);max-height:90vh;max-height:90dvh;padding:18px;border:1px solid #cbd5e1;border-radius:8px;color:#202124;background:#fff;font:14px/1.6 system-ui,sans-serif;overflow:auto}
#popupAdParagraphDialog::backdrop{background:#0008}
#popupAdParagraphDialog h2{font-size:18px;margin:0 0 8px}
#popupAdParagraphDialog p{margin:0 0 10px}
#popupAdParagraphDialog .paragraph-options{max-height:180px;overflow:auto;border-block:1px solid #e2e8f0;padding:8px 0;margin-bottom:12px}
#popupAdParagraphDialog .paragraph-choice{display:flex;align-items:flex-start;gap:8px;padding:5px 0;overflow-wrap:anywhere}
#popupAdParagraphDialog input{flex:0 0 auto;margin-top:5px}
#popupAdParagraphDialog .paragraph-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#popupAdParagraphDialog .paragraph-previews figure{margin:0;min-width:0}
#popupAdParagraphDialog figcaption{font-weight:600;margin-bottom:4px}
#popupAdParagraphDialog iframe{display:block;box-sizing:border-box;width:100%;height:360px;border:1px solid #e2e8f0;background:#f1f5f9}
#popupAdParagraphDialog .paragraph-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;position:sticky;bottom:-18px;background:#fff;padding:12px 0 0}
#popupAdParagraphDialog button{font:inherit;padding:7px 12px;border:1px solid #cbd5e1;border-radius:5px;background:#fff;color:#202124;cursor:pointer}
#popupAdParagraphDialog button[data-action="apply-paragraphs"]{background:#356d4a;color:#fff}
#popupAdParagraphDialog button:disabled{opacity:.5;cursor:default}
#popupAdParagraphDialog [role="status"]{color:#9f332b;min-height:1.6em}
@media(max-width:600px){#popupAdParagraphDialog{padding:12px}#popupAdParagraphDialog .paragraph-previews{grid-template-columns:minmax(0,1fr)}#popupAdParagraphDialog iframe{height:320px}#popupAdParagraphDialog .paragraph-actions{bottom:-12px}}

/* Typography A: rich announcement text only; HF2 geometry and image mode unchanged. */
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll,
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll p,
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-list,
#admin-popup-ad .rich-editor-shell .rich-editor-canvas,
#admin-popup-ad .rich-editor-shell .rich-editor-canvas p,
#admin-popup-ad .rich-editor-shell .rich-editor-canvas ul,
#admin-popup-ad .rich-editor-shell .rich-editor-canvas ol{
  font-size:16px;
  line-height:1.6;
  letter-spacing:0;
  color:#353535;
  text-align:left;
  line-break:strict;
  word-break:normal;
  overflow-wrap:anywhere;
}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll p,
#admin-popup-ad .rich-editor-shell .rich-editor-canvas p{
  margin:0 0 10px;
}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll p:last-child,
#admin-popup-ad .rich-editor-shell .rich-editor-canvas p:last-child,
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll li>p,
#admin-popup-ad .rich-editor-shell .rich-editor-canvas li>p{margin-bottom:0}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll p.xa166-rich-empty-line,
#admin-popup-ad .rich-editor-shell .rich-editor-canvas p.xa166-rich-empty-line{min-height:calc(1em * 1.6);margin:0}

/* HF3 local visual candidate: rich announcement only; A typography is inherited. */
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__dialog{
  width:83vw;
  max-width:min(520px,100%);
  max-height:min(75vh,calc(100vh - 48px - var(--xa-rich-safe-top) - var(--xa-rich-safe-bottom)));
  max-height:min(75dvh,calc(100dvh - 48px - var(--xa-rich-safe-top) - var(--xa-rich-safe-bottom)));
  border-radius:24px;
  border:1px solid rgba(214,225,210,.9);
  background:linear-gradient(180deg,#f9fcf7 0%,#f2f7f0 100%);
  box-shadow:0 10px 30px rgba(0,0,0,.10);
}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-scroll{
  padding:4px 20px 16px;
  background:transparent;
}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-footer{
  padding:8px 20px max(8px,env(safe-area-inset-bottom));
  border-top:1px solid rgba(214,225,210,.65);
  border-radius:0 0 23px 23px;
  background:rgba(247,250,244,.95);
}
#xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-contact{border-radius:12px}
@media(max-width:767px),(hover:none) and (pointer:coarse){
  #xa166PopupRoot[data-display-type="richtext"] .xa166-popup__dialog{
    max-height:min(70vh,calc(100vh - 48px - var(--xa-rich-safe-top) - var(--xa-rich-safe-bottom)));
    max-height:min(70dvh,calc(100dvh - 48px - var(--xa-rich-safe-top) - var(--xa-rich-safe-bottom)));
  }
}
@media(max-height:450px){
  #xa166PopupRoot[data-display-type="richtext"] .xa166-popup__rich-footer{
    padding-top:4px;
    padding-bottom:max(4px,env(safe-area-inset-bottom));
  }
}
