/* Autopilot uses the same illustrated assistant everywhere. */
.cosmicRobot {display:inline-block;width:1.45em;height:1.14em;vertical-align:-.2em;object-fit:contain;pointer-events:none}
#dlgAP {
  --ap-gold:#ffe1a0; --ap-text:#f2efff; --ap-muted:#d1d8ef;
  box-sizing:border-box;width:min(720px,calc(100vw - 22px));max-width:calc(100vw - 16px);
  max-height:min(94dvh,940px);padding:0;color:var(--ap-text);overflow:hidden;
  border:2px solid transparent!important;border-radius:24px;
  background:linear-gradient(105deg,#09112c3b,#100a2477) padding-box,
    url('../leagues/sky.webp') center / cover no-repeat padding-box,
    linear-gradient(135deg,#753f14,#ffdf88 8%,#7357b3 22%,#65dfff 33%,#ce97ff 45%,#8e512d 59%,#ffd779 78%,#69317f 94%,#ffdf95) border-box!important;
  box-shadow:0 22px 70px #020215bd,0 0 18px #5a3bbc82,inset 0 0 0 2px #19142d!important;
}
#dlgAP[open] {display:flex;flex-direction:column}
#dlgAP .dlgHead {
  flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:clamp(12px,2.6vw,21px) clamp(12px,2.8vw,26px);margin:0;
  min-height:64px;border:0;border-bottom:1px solid #ac8d69;
  background:linear-gradient(95deg,#0b0b26ee 12%,#17102cde 42%,#15112c46 78%,#09081cd9),url('../star-path/header-sky.webp') right 47% / auto 145% no-repeat;
}
#dlgAP h2 {margin:0;display:flex;align-items:center;gap:.28em;font:700 clamp(25px,4vw,36px)/1.05 Georgia,serif;color:var(--ap-gold);text-shadow:0 2px 4px #11061b,0 0 10px #ad5b35}
#dlgAP h2 img {width:1.22em;height:1em;filter:drop-shadow(0 1px 3px #070519)}
#dlgAP .dlgHead button {flex:none;min-height:38px;padding:.35em 1.05em}
#dlgAP #apBody {display:grid;gap:12px;align-content:start;flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;
  padding:clamp(12px,2.7vw,22px);scrollbar-color:#8e78be #0c1027;
  font:500 clamp(14px,1.45vw,16px)/1.44 'Golos Text',system-ui,sans-serif}
#dlgAP #apBody>* {min-width:0}
#dlgAP .apStat {position:relative;isolation:isolate;display:flex;align-items:center;gap:clamp(12px,2vw,20px);min-height:90px;
  border:1px solid #6988cc;border-radius:16px;padding:10px clamp(12px,3vw,22px);
  background:linear-gradient(100deg,#0d1a36f0,#101539cf 64%,#16153673),url('../star-path/sky-detail.webp') center / cover;
  box-shadow:inset 0 1px 1px #88c5f52c}
#dlgAP .apStat.on{border-color:#63c9c7}
#dlgAP .apStat .apBot{position:relative;isolation:isolate;display:grid;place-items:center;flex:none;width:clamp(65px,12vw,88px);height:65px;line-height:0;filter:none}
#dlgAP .apStat .apBot::before {content:"";position:absolute;inset:auto 1% 2%;height:18%;border-radius:50%;z-index:-1;
  border:1px solid #58daff;box-shadow:0 0 7px #4fa7f3,inset 0 0 8px #ae61ee;background:#391c6777}
#dlgAP .apStat .apBot img{width:100%;height:100%;filter:drop-shadow(0 0 4px #76ceff50)}
#dlgAP .apStat b {display:block;color:#f4f2ff;font:700 clamp(19px,3vw,25px)/1.13 Georgia,serif}
#dlgAP .apStat.on b{color:#a7fff1}
#dlgAP .apStat small{display:block;margin-top:.3em;color:var(--ap-muted);font:inherit;font-size:.92em;opacity:1}
#dlgAP .apList{display:grid;gap:0;margin:0;padding:3px 14px;list-style:none;background:#090e25e3;border:1px solid #594f7f;border-radius:14px}
#dlgAP .apList li{padding:8px 0;font:inherit;color:#f2efff}
#dlgAP .apList li+li{border-top:1px solid #42405e}
#dlgAP .note{margin:0;color:var(--ap-muted);font:inherit;font-size:.86em;line-height:1.39}
#dlgAP .apH{display:flex;align-items:center;gap:12px;margin:2px 0 -3px;color:var(--ap-gold);font:700 clamp(19px,2.5vw,24px)/1.15 Georgia,serif}
#dlgAP .apH::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#c19754,#7c5b98,transparent)}
#dlgAP .apBuy{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#dlgAP .apBuy button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:64px;white-space:normal;
  padding:6px 10px;text-align:start;border-radius:16px;line-height:1.16}
#dlgAP .apBuy .cosmicRobot{width:clamp(40px,7vw,61px);height:45px;flex:none}
#dlgAP .apOfferCopy{min-width:0;display:grid;justify-items:start;gap:4px;font:700 clamp(14px,1.8vw,18px)/1.22 'Golos Text',system-ui,sans-serif}
#dlgAP .apBuy .vipPop{position:static;display:inline-block;margin:0;transform:none;font:700 10px/1.2 'Golos Text',system-ui,sans-serif;
  letter-spacing:.025em;color:#ffedbf;background:#48265f;border:1px solid #b288bd;border-radius:99px;padding:2px 7px}
@layer diskilayControls{
 #dlgAP .apBuy button {color:#f6f1ff!important;background:linear-gradient(100deg,#14213be8,#241749e8 73%,#101a3f) padding-box,
   linear-gradient(125deg,#c99b64,#98e6ff 33%,#526fbc 60%,#ddac6d) border-box!important;border:2px solid transparent!important;
   box-shadow:inset 0 1px 5px #5399d551,0 2px 7px #08051d70!important}
 #dlgAP .apBuy button[data-apgem="30"],#dlgAP .apBuy button[data-vipbuy="auto30"] {background:linear-gradient(102deg,#281744e3,#422147e8 70%,#1b1436) padding-box,linear-gradient(115deg,#cf8731,#ffdf86 24%,#a773c4 53%,#ffd78b) border-box!important}
 #dlgAP .apBuy button:disabled {opacity:1!important;filter:saturate(.6)!important;color:#c8c9d5!important;cursor:default}
 #dlgAP button:focus-visible {outline:2px solid #a4fbff!important;outline-offset:2px!important}
}
#dlgAP .apNext {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}
#dlgAP .apNext span {background:#091733e8;border:1px solid #4d698c;border-radius:12px;color:#d7e6ff;align-content:center;font-size:.84em}
#dlgAP .apNext b{font:700 1.12em/1.4 system-ui;color:#8feaff;font-variant-numeric:tabular-nums}
#dlgAP .apBatch{margin:0;background:linear-gradient(125deg,#322347f2,#14142ff5);border:1px solid #b9925c;border-radius:14px}
#dlgAP .apBH b{color:var(--ap-gold)}
#dlgAP .apItems span{opacity:1;color:#f4efff}
#dlgAP .apX2{white-space:normal}
#dlgAP .apDone{color:#9ef4c6}
#dlgShop .apShop .apBot{background:none;mask-image:none;display:grid;place-items:center;flex:none;filter:none}
#dlgShop .apShop .apBot img{width:100%;height:100%;object-fit:contain}
.nowCard .nwIco img.cosmicRobot{width:1.58em;height:1.16em}
.rbWho>i>.cosmicRobot{width:100%;height:100%;max-width:2em;max-height:1.7em}
#toast .cosmicRobot,.hiInfo .cosmicRobot{width:1.6em;height:1.25em}
@media(max-width:480px){
 #dlgAP{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:96dvh;border-radius:18px}
 #dlgAP .dlgHead{min-height:54px;padding:9px 12px}#dlgAP .dlgHead button{min-height:36px}
 #dlgAP #apBody{gap:10px;padding:12px}#dlgAP .apStat{padding:8px 10px;min-height:75px}
 #dlgAP .apBuy{gap:6px}#dlgAP .apBuy button{padding:6px;gap:4px}#dlgAP .apBuy .cosmicRobot{width:35px;height:30px}
 #dlgAP .apNext span{display:grid;grid-template-columns:1fr;justify-items:center;text-align:center}
}
@media(max-width:365px){#dlgAP .apBuy{grid-template-columns:1fr}#dlgAP .apBuy button{justify-content:flex-start;min-height:48px;padding-inline:14px}#dlgAP .apBuy .apOfferCopy{display:flex;align-items:center;flex-wrap:wrap;column-gap:8px}}
@media(max-height:450px) and (min-width:481px){#dlgAP{max-height:96dvh}#dlgAP .dlgHead{min-height:47px;padding:7px 18px}#dlgAP #apBody{padding-block:11px}}
html body dialog#dlgAP.apDlg {
  border:2px solid transparent!important;
  background:linear-gradient(100deg,#070b23,#160e33) padding-box,
    linear-gradient(145deg,#754420,#ffc86c 4%,#fff5bc 8%,#88529d 20%,#a6dfff 38%,#ba73db 56%,#764b26 73%,#ffde96 86%,#b8713c 96%,#e5afff) border-box!important;
}
#dlgAP #apBody {
  background:linear-gradient(100deg,#060a2066,#0b0a2466 52%,#0b0a2422),
    url('../leagues/sky.webp') center / 100% 100% no-repeat #090a23;
}
#dlgAP .apList {background:#090e27e8}
#dlgAP #apBody>.note {color:#e1e1f5;text-shadow:0 1px 3px #030315}
#dlgAP .apStat {background:linear-gradient(100deg,#111936d9,#171339c9 63%,#0d103558),url('../star-path/sky-detail.webp') center / cover}
@layer diskilayControls {
  #dlgAP .apBuy button:not(:disabled) {
    background:linear-gradient(112deg,#221d51a6,#091935c9 71%,#0c1544a6) padding-box,
      url('../star-path/sky-detail.webp') center / cover padding-box,
      linear-gradient(118deg,#ffe0a0,#8bedff 28%,#8d63f8 66%,#ffda8b) border-box!important;
    box-shadow:inset 0 1px 4px #9cd6ff7d,inset 0 -2px 6px #5267d16b,0 0 8px #327fdb8a!important;
  }
  #dlgAP .apBuy button[data-apgem="30"]:not(:disabled),#dlgAP .apBuy button[data-vipbuy="auto30"]:not(:disabled) {
    background:linear-gradient(115deg,#48214bc4,#27143ec7 72%,#39214470) padding-box,
      url('../star-path/sky-detail.webp') right bottom / cover padding-box,
      linear-gradient(111deg,#c27c31,#ffecaa 27%,#d78bca 61%,#ffd785) border-box!important;
    box-shadow:inset 0 1px 4px #ffe6bd8c,inset 0 -2px 6px #c64bc26b,0 0 8px #ba633c85!important;
  }
}
