#dlgWel {
  box-sizing:border-box; width:min(1360px,96vw,139dvh); max-width:none; height:auto!important;
  min-height:0!important; max-height:96vh; max-height:96dvh; padding:0; margin:auto; overflow:hidden;
  color:#fff9ff; color-scheme:dark; border:0; border-radius:clamp(20px,4.2vw,68px);
  background:#0b0824!important; box-shadow:0 12px 42px #050116cc,0 0 15px #8e56e959;
  container-type:inline-size;
}
#dlgWel[open] {display:flex;flex-direction:column}
#dlgWel::backdrop {background:#080518b8;backdrop-filter:blur(3px)}
#dlgWel .fsPanel {
  position:relative; isolation:isolate; display:flex; flex-direction:column; min-height:0; border-radius:inherit;
  box-sizing:border-box; padding:1.55cqw 3.8cqw 1.15cqw; 
  background:linear-gradient(180deg,#1006320a 0%,#09051bcf 25%,#06051de6 79%,#17083f8c),
    url("../star-path/sky-detail.webp") center top/100% auto no-repeat,#0c0827;
}
#dlgWel .fsPanel::before {
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none; border-radius:inherit;
  padding:clamp(3px,.49cqw,7px);
  background:linear-gradient(115deg,#992f0c 0%,#fff5b4 3%,#ffb537 6%,#6e35ff 12%,#ffd361 25%,#fff5c8 34%,#8239d3 45%,#fec854 62%,#ffe8a6 75%,#9f43ff 85%,#ffae22 93%,#fffad1 99%);
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;
}
#dlgWel .fsRim {position:absolute;inset:-.43%;pointer-events:none;z-index:4;border:clamp(28px,6.6cqw,90px) solid transparent;
  border-image:url("rim.webp") 93 / 1 stretch;}
#dlgWel .fsPanel::after {
  content:""; position:absolute; pointer-events:none; z-index:2; inset:clamp(3px,.46cqw,7px);border:1px solid #e8adff;
  border-radius:inherit;box-shadow:inset 0 0 5px #ffe67b, inset 0 0 10px #ab42e3,0 0 4px #ff9a18;
}
#dlgWel .fsHeader {
  display:grid; grid-template-columns:14.5% minmax(0,1fr) auto; align-items:center;
  position:relative; isolation:isolate; flex:none; padding:0; margin:0;
  min-height:14.4cqw; grid-template-rows:minmax(6.7cqw,auto) auto;
}
#dlgWel .fsStation {position:absolute;z-index:-1;pointer-events:none;inset:-.3cqw -1.5cqw 0 54%;
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);}
#dlgWel .fsStation::before,#dlgWel .fsStation::after {content:"";position:absolute;bottom:0; background-size:100% 100%}
#dlgWel .fsStation::before {left:0;width:62.2%;height:100%;background-image:url("station.webp");mask-image:linear-gradient(180deg,transparent 34%,#000 64%),linear-gradient(90deg,#000 85%,transparent)}
#dlgWel .fsStation::after {left:62.1%;width:37.9%;height:57.21%;background-image:url("landing.webp");
  mask-image:linear-gradient(180deg,transparent,#000 9%)}
#dlgWel .fsCap {align-self:stretch;min-height:6.7cqw;margin-left:-.8cqw;
  background:url("cap.webp") center/contain no-repeat;mask-image:radial-gradient(ellipse 54% 60% at center,#000 55%,#000d 72%,transparent 98%);}
#dlgWel h2 {margin:0;align-self:center; font:italic 700 clamp(26px,4.65cqw,62px)/1.07 Georgia,"Times New Roman",serif;
  color:#ffe7a4;text-shadow:0 1px 0 #fff6cf,0 2px 3px #ab3e03,0 0 9px #f98928,0 0 18px #9f354a;}
#dlgWel .fsClose,#dlgWel .fsClaim,#dlgWel .fsGift {
  margin:0; cursor:pointer; font-family:inherit; appearance:none; color:#fff7e2; box-sizing:border-box;
}
#dlgWel .fsClose {position:relative;align-self:start; justify-self:end;margin-top:1.15cqw;
  min-height:36px;padding:.56em .95em;border:2px solid #ffdc80;border-radius:200px;background:linear-gradient(#253474,#080c26 55%,#30124a);
  font-size:clamp(14px,1.52cqw,21px);line-height:1;font-weight:750;box-shadow:inset 0 0 0 1px #e88831,inset 0 0 7px #6386ff,0 0 7px #ff9f3f;}
#dlgWel .fsClose span {color:#ffd661;font-family:Arial,sans-serif;font-size:1.3em;vertical-align:-.03em}
#dlgWel #welIntro {grid-column:1/-1;align-self:end;width:58%;box-sizing:border-box;
  padding:0 0 .94cqw 3.4cqw;margin:.3cqw 0 0;font:500 clamp(13px,1.65cqw,22px)/1.26 system-ui,sans-serif;
  color:#fbf5ff;text-shadow:0 1px 3px #040214;}
#dlgWel #welIntro strong {font-weight:750;font-style:italic;color:#ffdd85;}
#dlgWel #welBody {min-height:0;flex:0 1 auto;overflow:auto;overscroll-behavior:contain;
  max-height:none;padding:.38cqw .48cqw .45cqw;margin:0 -.48cqw;scrollbar-width:thin;scrollbar-color:#9567c8 #100a29;}
#dlgWel .fsSteps {display:grid;gap:.52cqw;list-style:none;padding:0;margin:0;}
#dlgWel .fsRow {--edge:#506af1;--spark:#75cdff;display:grid;isolation:isolate;position:relative;align-items:center;
  grid-template-columns:28.2% minmax(0,1fr) minmax(0,20%) 17%;gap:.6cqw;
  min-height:5.72cqw;box-sizing:border-box;padding:.22cqw .85cqw;
  border:1.5px solid var(--edge);border-radius:1.75cqw;
  background:radial-gradient(ellipse at 91% 100%,#1c40a957,transparent 34%),linear-gradient(110deg,#161039,#100e35 51%,#08091e 85%,#142045);
  box-shadow:inset 0 -2px 6px #5236ad5c,inset 0 1px 2px #c784ff75,0 1px 3px #020111;}
#dlgWel .fsRow:nth-child(3n+2){--edge:#9361fa;--spark:#ec8bff}
#dlgWel .fsRow:nth-child(3n){--edge:#9571f5;--spark:#ffcc84}
#dlgWel .fsRow::before {content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(90deg,transparent 2%,var(--spark) 8%,transparent 22%,#bb7bff77 64%,#6ad5ff 94%,transparent 100%) center bottom / 98% 2px no-repeat;}
#dlgWel .fsRow.ready {border-color:#ffe8a1;box-shadow:inset 0 0 3px #fff3c0,inset 0 0 11px #d67b37,0 0 4px #ffad37,0 0 9px #c3429b;
  background:linear-gradient(105deg,#28113d,#23113f 38%,#231036 75%,#41203c);}
#dlgWel .fsArt {display:block;position:relative;align-self:stretch;min-width:0;}
#dlgWel .fsArt img {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:fill;
  mask-image:linear-gradient(90deg,transparent,#000 3%,#000 90%,transparent);}
#dlgWel .fsNumber {display:none;}
#dlgWel .fsTask {font:500 clamp(15px,1.65cqw,23px)/1.12 system-ui,sans-serif;color:#f5f2ff;overflow-wrap:anywhere; padding-block:.15em;}
#dlgWel .fsRow:nth-child(5) .fsTask b {display:inline;}
#dlgWel .fsTask b {display:block;color:white;font-weight:780;}
#dlgWel .fsPrize,#dlgWel .fsAction {z-index:1; position:relative;}
#dlgWel .fsRow::after {content:"";position:absolute;inset:7% .5% 7% 63%;border-radius:4cqw;z-index:-1;pointer-events:none;
  border:1px solid #54418c;background:linear-gradient(100deg,#19133777,#070c20cf);box-shadow:inset 0 0 7px #0f1232;}
#dlgWel .fsPrize {display:flex;align-items:center;gap:.5cqw;min-width:0;padding-left:.8cqw;
  color:#ffdf88;font:700 clamp(15px,1.75cqw,24px)/1.12 Georgia,serif;overflow-wrap:anywhere;}
#dlgWel .fsMoney {flex:none;display:inline-block;width:3.85cqw;height:3.2cqw; background:center/contain no-repeat;}
#dlgWel .fsMoney.coins {background-image:url("../event-stream/coins.webp");mask-image:radial-gradient(ellipse 67% 66% at center,#000 46%,#000e 67%,transparent 96%)}
#dlgWel .fsMoney.ingot {background-image:url("../currency/vip-ingot.webp")}
#dlgWel .fsMoney.diamond {background-image:url("../shop/diamond-cut.webp")}
#dlgWel .fsAction {display:flex;justify-content:center;align-items:center;min-width:0;}
#dlgWel .fsTick {min-width:2.05em;min-height:1.3em;text-align:center;border-radius:3em;border:1px solid #81ff81;
  background:linear-gradient(135deg,#10280c,#214d23 50%,#05220b);color:#92ff90;font:900 clamp(18px,2.1cqw,29px)/1.3 system-ui,sans-serif;
  box-shadow:inset 0 0 8px #007b30,0 0 9px #00af464a;text-shadow:0 0 5px #5eff79;}
#dlgWel .fsClaim {border:2px solid #fff4ba;border-radius:99px;width:100%;min-height:32px;
  padding:.25em .36em;font-size:clamp(15px,1.8cqw,25px);line-height:1.12;font-weight:780;
  background:linear-gradient(#ffe183,#ffac29 20%,#ae4c05 53%,#7c2800 77%,#ff980d);text-shadow:0 1px 3px #542000;
  box-shadow:inset 0 0 0 1px #ee9f32,0 0 0 2px #da750e,0 0 9px #ffaf1d;}
#dlgWel .fsClaim:disabled {background:#151533;color:#ada9c8;border:1px solid #60577c;box-shadow:none;text-shadow:none;cursor:default;opacity:1;}
#dlgWel .fsFooter {position:relative;isolation:isolate;flex:none;display:grid;place-items:center;min-height:7.4cqw;
  margin:.28cqw -2.7cqw -.55cqw;padding:.38cqw 1cqw 1cqw;overflow:hidden;border-radius:0 0 2.8cqw 2.8cqw;
  background:radial-gradient(ellipse at 50% 92%,#db77ff 0%,#7235ef 1%,#321881 4%,#5627a7 5%,#1e1855 13%,#6732a7 15%,transparent 42%);}
#dlgWel .fsFooter::before,#dlgWel .fsFooter::after {content:"";position:absolute;z-index:-1;top:0;bottom:0;width:40%;pointer-events:none;background-size:100% 100%;}
#dlgWel .fsFooter::before {left:0;background-image:url("west-crystals.webp");mask-image:linear-gradient(90deg,#000 48%,transparent),linear-gradient(180deg,transparent,#000 17%);mask-composite:intersect;}
#dlgWel .fsFooter::after {right:0;background-image:url("east-crystals.webp");mask-image:linear-gradient(270deg,#000 48%,transparent),linear-gradient(180deg,transparent,#000 17%);mask-composite:intersect;}
#dlgWel .fsGift {display:inline-flex;align-items:center;justify-content:center;gap:.5em;max-width:96%;min-width:39%;
  min-height:4.7cqw;padding:.18em 1em;border:3px solid #ffe6aa;border-radius:100px;
  color:#ffe392;font:italic 700 clamp(19px,2.5cqw,34px)/1.15 Georgia,serif;text-shadow:0 2px 3px #531b12;
  background:linear-gradient(#ffbd65 0%,#7a38ad 9%,#200d56 38%,#32116d 66%,#8d40e5 86%,#ffb64f 100%);
  box-shadow:0 0 0 2px #af5b09,0 0 10px #f1a94a,inset 0 0 9px #a97cfe;}
#dlgWel .fsGiftIcon {display:inline-block;width:1em;height:1.05em;background:url("../flight-school/gift.webp") center/contain no-repeat;}
#dlgWel .fsGift:disabled {opacity:1;cursor:default;filter:saturate(.9)!important;}
#dlgWel .fsGift:not(:disabled) {box-shadow:0 0 0 2px #e18b17,0 0 15px #ffc659,inset 0 0 10px #ce98ff;}
#dlgWel button:not(:disabled):hover {filter:brightness(1.13);}
#dlgWel button:focus-visible {outline:3px solid #8ce8ff;outline-offset:2px;}
@media (max-height:550px) and (min-width:601px){
  #dlgWel {width:min(96vw,1040px);max-height:96dvh;}
  #dlgWel .fsHeader {min-height:0;grid-template-rows:minmax(39px,5cqw) auto;}
  #dlgWel .fsCap {min-height:0;} #dlgWel h2 {font-size:clamp(25px,3.8cqw,40px);}
  #dlgWel #welIntro {width:75%;font-size:13px;padding:0 0 5px .5cqw;}
  #dlgWel .fsClose {margin-top:0;} #dlgWel .fsFooter {min-height:42px;padding:4px;}
  #dlgWel .fsGift {min-height:32px;font-size:18px;}
}
@media (max-width:600px) {
  #dlgWel {width:97vw;max-height:97dvh;border-radius:24px;}
  #dlgWel .fsPanel {padding:10px 10px 6px;}
  #dlgWel .fsHeader {grid-template-columns:45px minmax(0,1fr) auto;min-height:0;grid-template-rows:minmax(43px,auto) auto;gap:2px;}
  #dlgWel h2 {font-size:clamp(23px,6.35cqw,34px);}
  #dlgWel .fsClose {font-size:13px;min-height:34px;margin:2px 0 0;padding:4px 8px;}
  #dlgWel #welIntro {width:100%;font-size:13px;line-height:1.23;padding:5px 3px 8px;margin:0;}
  #dlgWel .fsStation {inset:0 0 0 43%;opacity:.25;}
  #dlgWel #welBody {padding:3px;margin:0 -3px;}
  #dlgWel .fsSteps {gap:6px;}
  #dlgWel .fsRow {grid-template-columns:20% minmax(0,1fr) auto;grid-template-areas:"art task task" "art prize action";
    min-height:65px;gap:3px 6px;padding:5px 7px;border-radius:12px;}
  #dlgWel .fsArt {grid-area:art;} #dlgWel .fsArt img {object-fit:cover;object-position:73% center;}
  #dlgWel .fsNumber {display:grid;place-items:center;position:absolute;bottom:0;left:1px;min-width:19px;height:19px;
    background:#10164c;border-radius:50%;border:1px solid #b5c5fb;color:#fff4d8;font:italic bold 14px/1 Georgia,serif;}
  #dlgWel .fsTask {grid-area:task;font-size:14px;line-height:1.15;padding:0;}
  #dlgWel .fsTask b {display:inline;} #dlgWel .fsRow::after {display:none;}
  #dlgWel .fsPrize {grid-area:prize;font-size:14px;padding:0;gap:3px;}
  #dlgWel .fsMoney {width:23px;height:21px;}
  #dlgWel .fsAction {grid-area:action;justify-self:end;}
  #dlgWel .fsClaim {padding:3px 8px;min-height:29px;font-size:13px;}
  #dlgWel .fsTick {font-size:16px;}
  #dlgWel .fsFooter {min-height:49px; margin:3px -4px 0;padding:4px;}
  #dlgWel .fsGift {min-height:36px;font-size:18px;}
}
