/* 0.6.2 – beautiful responsive first-account commander academy.
   Separate layer, no page-height overflow or interference with live game controls.
 */
.stellar-welcome-overlay{
 position:fixed!important;
 inset:0!important;
 z-index:50000!important;
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 box-sizing:border-box!important;
 padding:clamp(9px,2.5vmin,25px)!important;
 background:rgba(3,7,23,.91)!important;
 -webkit-backdrop-filter:blur(14px);
 backdrop-filter:blur(14px);
 overflow:hidden!important;
}
.stellar-welcome-overlay *,
.stellar-welcome-overlay *::before,
.stellar-welcome-overlay *::after{
 box-sizing:border-box;
}
.stellar-welcome-dialog{
 display:flex;
 flex-direction:column;
 align-items:stretch;
 width:min(1040px,100%);
 height:min(730px,calc(100dvh - 26px));
 min-height:0;
 margin:auto;
 padding:0;
 border:1px solid #71a8efb0;
 border-radius:20px;
 background:radial-gradient(ellipse at 40% 5%,#233a66 0%,#131e36 45%,#0a1228 100%);
 box-shadow:0 0 0 1px #ffffff12 inset,0 23px 80px #000e,0 0 60px #2976d935;
 color:#f3f8ff;
 overflow:hidden;
 font-family:inherit;
 isolation:isolate;
}
.stellar-welcome-dialog button{
 font-family:inherit;
 cursor:pointer;
 transition:background .16s,border-color .16s,transform .16s,filter .16s;
 touch-action:manipulation;
}
.stellar-welcome-dialog button:disabled{
 opacity:.40;
 cursor:default;
}
.stellar-welcome-dialog button:focus-visible{
 outline:2px solid #b6fbff!important;
 outline-offset:2px!important;
}
.stellar-welcome-topline{
 display:flex;
 flex:0 0 auto;
 align-items:center;
 justify-content:space-between;
 gap:14px;
 min-height:52px;
 padding:11px 24px 8px;
 color:#e6f3ff;
 background:linear-gradient(90deg,#263d65bb,#1b294ab8 70%,#172544aa);
 border-bottom:1px solid #96c8f51e;
 font-size:12px;
 line-height:1.3;
 font-weight:900;
 letter-spacing:.11em;
}
.stellar-welcome-edition{color:#83bddf;font-size:11px;font-weight:700}
.stellar-welcome-skip{
 border:1px solid #7594b957;
 border-radius:9px;
 background:#1b2a44a3;
 color:#c8def1;
 min-height:31px;
 padding:6px 11px;
 font-size:11px;
 font-weight:780;
 white-space:nowrap;
}
.stellar-welcome-skip:hover{
 border-color:#a5d7f0;background:#24445c;
}
.stellar-welcome-subtitle{
 display:none;
}
.stellar-welcome-main{
 display:grid;
 grid-template-columns:minmax(0,42fr) minmax(0,58fr);
 flex:1 1 auto;
 min-height:0;
 overflow:hidden;
}
.stellar-welcome-hero{
 position:relative;
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 justify-content:flex-end;
 min-width:0;
 min-height:0;
 height:100%;
 padding:22px;
 background-image:var(--welcome-photo);
 background-size:cover;
 background-position:center;
 overflow:hidden;
}
.stellar-welcome-hero-shade{
 position:absolute;
 inset:0;
 z-index:0;
 background:linear-gradient(180deg,#04132515 12%,#06163038 42%,#050b1de9 100%),
            linear-gradient(90deg,#0b183a34,#112c4580);
 pointer-events:none;
}
.stellar-welcome-hero:before{
 content:"";
 position:absolute;
 z-index:1;
 left:20px;top:18px;
 width:89px;height:2px;
 background:linear-gradient(90deg,#7ce8ff,transparent);
}
.stellar-welcome-emblem{
 position:relative;
 z-index:2;
 display:flex;
 align-items:center;
 justify-content:center;
 width:128px;height:128px;
 padding:12px;
 border:1px solid #b1e9ff77;
 border-radius:25px;
 background:linear-gradient(135deg,#071b3ba8,#2b53818c);
 box-shadow:0 0 40px #20acfe47,inset 0 0 30px #145f9b68;
 -webkit-backdrop-filter:blur(9px);
 backdrop-filter:blur(9px);
 margin:0 0 auto;
}
.stellar-welcome-emblem img{
 display:block;
 width:100%;height:100%;
 object-fit:contain;
 filter:drop-shadow(0 3px 12px #0009);
}
.stellar-welcome-hero-label{
 z-index:2;
 position:relative;
 margin-top:auto;
 padding:11px 14px;
 border:1px solid #70b8db67;
 border-radius:10px;
 background:#071628d9;
 color:#c6f5ff;
 font-size:12px;
 font-weight:900;
 letter-spacing:.15em;
 text-shadow:0 1px 5px #051025;
 box-shadow:0 6px 24px #0005;
}
.stellar-welcome-copy{
 min-width:0;
 min-height:0;
 padding:clamp(21px,3.5vmin,42px);
 display:flex;
 flex-direction:column;
 justify-content:center;
 gap:0;
 overflow-y:auto;
 overscroll-behavior:contain;
 scrollbar-width:thin;
 scrollbar-color:#4f7da7 #17233c;
}
.stellar-welcome-step-label{
 display:flex;
 align-items:center;
 gap:9px;
 margin-bottom:13px;
 color:#90ceff;
 font-size:11px;
 line-height:1.1;
 font-weight:950;
 letter-spacing:.17em;
 text-transform:uppercase;
}
.stellar-welcome-step-label:before{
 content:"";
 display:inline-block;
 width:19px;height:2px;
 border-radius:3px;
 background:#77e3ee;
 box-shadow:0 0 11px #45e6ff84;
}
.stellar-welcome-copy h2{
 margin:0 0 13px!important;
 color:#fff!important;
 font-size:clamp(24px,2.5vw,36px)!important;
 line-height:1.12!important;
 letter-spacing:-.025em!important;
 font-weight:930!important;
 text-shadow:0 3px 13px #061020;
}
.stellar-welcome-lead{
 color:#d5e5fa!important;
 margin:0 0 20px!important;
 font-size:clamp(13px,1.15vw,16px)!important;
 line-height:1.52!important;
 max-width:65ch;
}
.stellar-welcome-lead strong{color:#b7f5ff}
.stellar-welcome-tips{
 display:grid;
 grid-template-columns:minmax(0,1fr);
 gap:9px;
}
.stellar-welcome-tip{
 display:flex;
 align-items:flex-start;
 gap:13px;
 padding:11px 13px;
 border:1px solid #6a96ba48;
 border-radius:11px;
 background:linear-gradient(100deg,#1c314bb5,#0e1e38bc);
 box-shadow:inset 0 1px #ffffff0d;
}
.stellar-welcome-tip-number{
 display:grid;
 place-items:center;
 flex:0 0 36px;
 height:36px;
 border:1px solid #68d6ec7a;
 border-radius:10px;
 color:#8debfb;
 background:#122d4e;
 font-size:12px;
 font-weight:950;
 font-variant-numeric:tabular-nums;
}
.stellar-welcome-tip>span:last-child{
 display:flex;
 flex-direction:column;
 min-width:0;
 gap:4px;
}
.stellar-welcome-tip strong{
 display:block;
 color:#e6f4ff;
 font-size:13px;
 font-weight:850;
 line-height:1.16;
}
.stellar-welcome-tip small{
 display:block;
 color:#b6cde3;
 font-size:12px;
 line-height:1.35;
 font-weight:510;
}
.stellar-welcome-bottom{
 flex:0 0 auto;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:16px;
 padding:13px 23px;
 background:#0c182d;
 border-top:1px solid #86bce043;
}
.stellar-welcome-tracker{
 display:flex;
 align-items:center;
 gap:13px;
 min-width:0;
}
.stellar-welcome-count{
 color:#cee6f5;
 font-size:12px;
 font-weight:850;
 min-width:46px;
 font-variant-numeric:tabular-nums;
}
.stellar-welcome-progress{
 display:flex;
 align-items:center;
 gap:6px;
}
.stellar-welcome-progress-node{
 width:17px;
 height:5px;
 border-radius:50px;
 background:#314664;
}
.stellar-welcome-progress-node.active{
 background:#76f2f5;
 box-shadow:0 0 11px #41e6f7a0;
}
.stellar-welcome-progress-node.done{
 background:#588db7;
}
.stellar-welcome-controls{
 display:flex;
 align-items:center;
 justify-content:flex-end;
 gap:9px;
}
.stellar-welcome-back,
.stellar-welcome-next{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:40px;
 padding:9px 19px;
 white-space:nowrap;
 font-size:12px;
 font-weight:900;
 letter-spacing:.04em;
 border-radius:10px;
 border:1px solid #5d85b1;
}
.stellar-welcome-back{
 background:#15263f;
 color:#c4e1f2;
}
.stellar-welcome-next{
 background:linear-gradient(120deg,#53d5e3,#81a8fa);
 color:#05192b;
 border-color:#a1f3fb;
 min-width:127px;
 box-shadow:0 3px 16px #3faccd54;
}
.stellar-welcome-back:not(:disabled):hover{
 background:#234364;
}
.stellar-welcome-next:hover{filter:brightness(1.1);transform:translateY(-1px)}
.stellar-welcome-error{
 min-height:0;
 flex:0 0 auto;
 color:#ffb6c2;
 font-size:12px;
 margin:0;
 padding:0 24px;
 line-height:1.35;
}
.stellar-welcome-error:not(:empty){
 padding:7px 24px 10px;
 background:#4b132b69;
}
@media(max-width:760px){
 .stellar-welcome-overlay{
  padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom))!important;
 }
 .stellar-welcome-dialog{
  width:100%;
  height:min(750px,calc(100dvh - 16px));
  border-radius:15px;
 }
 .stellar-welcome-topline{
  min-height:43px;
  padding:8px 12px;
  font-size:10px;
  letter-spacing:.06em;
 }
 .stellar-welcome-edition{
  display:none;
 }
 .stellar-welcome-skip{
  font-size:10px;
  min-height:30px;
  padding:5px 8px;
 }
 .stellar-welcome-main{
  display:flex;
  flex-direction:column;
  overflow:hidden;
 }
 .stellar-welcome-hero{
  flex:0 0 clamp(115px,23dvh,195px);
  min-height:115px;
  height:auto;
  padding:12px 14px;
  background-position:center 49%;
 }
 .stellar-welcome-emblem{
  width:57px;height:57px;
  border-radius:13px;
  padding:5px;
 }
 .stellar-welcome-hero-label{
  font-size:9px;
  padding:5px 8px;
  letter-spacing:.09em;
  align-self:flex-end;
 }
 .stellar-welcome-hero:before{
  width:45px;left:12px;top:10px;
 }
 .stellar-welcome-copy{
  flex:1 1 auto;
  padding:16px 15px 18px;
  justify-content:flex-start;
 }
 .stellar-welcome-step-label{
  font-size:10px;
  margin-bottom:8px;
 }
 .stellar-welcome-copy h2{
  margin-bottom:8px!important;
  font-size:clamp(22px,5.7vw,28px)!important;
 }
 .stellar-welcome-lead{
  font-size:12px!important;
  margin:0 0 13px!important;
  line-height:1.45!important;
 }
 .stellar-welcome-tips{gap:7px}
 .stellar-welcome-tip{
  gap:9px;
  padding:9px 9px;
  border-radius:9px;
 }
 .stellar-welcome-tip-number{
  flex-basis:29px;
  height:29px;
  border-radius:8px;
  font-size:10px;
 }
 .stellar-welcome-tip strong{font-size:12px}
 .stellar-welcome-tip small{font-size:11px;line-height:1.3}
 .stellar-welcome-bottom{
  gap:8px;
  padding:9px 11px;
 }
 .stellar-welcome-tracker{gap:7px}
 .stellar-welcome-count{font-size:10px;min-width:34px}
 .stellar-welcome-progress{gap:3px}
 .stellar-welcome-progress-node{width:9px;height:4px}
 .stellar-welcome-controls{gap:5px}
 .stellar-welcome-back,.stellar-welcome-next{
  min-height:42px;
  padding:7px 12px;
  font-size:11px;
  border-radius:8px;
 }
 .stellar-welcome-next{min-width:95px}
 .stellar-welcome-error:not(:empty){padding:6px 10px}
}
@media(max-width:380px){
 .stellar-welcome-topline{font-size:9px}
 .stellar-welcome-progress-node{width:7px}
 .stellar-welcome-back,.stellar-welcome-next{font-size:10px;padding:7px 9px}
}
@media(max-height:670px) and (min-width:761px){
 .stellar-welcome-hero{padding:12px}
 .stellar-welcome-emblem{width:90px;height:90px;padding:6px}
 .stellar-welcome-copy{padding:15px 23px}
 .stellar-welcome-step-label{margin-bottom:6px}
 .stellar-welcome-copy h2{font-size:24px!important;margin-bottom:7px!important}
 .stellar-welcome-lead{font-size:13px!important;margin:0 0 10px!important}
 .stellar-welcome-tip{padding:8px 10px;gap:8px}
 .stellar-welcome-tip-number{height:26px;flex-basis:26px}
 .stellar-welcome-tips{gap:5px}
 .stellar-welcome-tip strong{font-size:12px}
 .stellar-welcome-tip small{font-size:11px}
 .stellar-welcome-bottom{padding:8px 15px}
}
@media(prefers-reduced-motion:reduce){
 .stellar-welcome-dialog button{transition:none!important}
}

/* Academy v2: direct topic selector to jump between practical tutorials. */
.stellar-welcome-topic{min-width:0;max-width:205px;width:205px;min-height:35px;
 padding:5px 28px 5px 10px;border:1px solid #719ac180;border-radius:9px;
 color:#e8f6ff;background:#172941;font:inherit;font-size:12px;font-weight:700;
 cursor:pointer;text-overflow:ellipsis;white-space:nowrap}
.stellar-welcome-topic option{color:#eff8ff;background:#15263e}
.stellar-welcome-topic:focus-visible{outline:2px solid #b6fbff;outline-offset:2px}
@media(max-width:760px){
 .stellar-welcome-tracker{flex:1 1 auto;min-width:0}
 .stellar-welcome-progress{display:none}
 .stellar-welcome-topic{width:min(135px,100%);max-width:135px;min-height:39px;font-size:11px}
 .stellar-welcome-bottom{gap:6px}
}
@media(max-width:380px){
 .stellar-welcome-topic{max-width:108px;font-size:10px;padding-left:6px}
 .stellar-welcome-count{min-width:30px}
}


/* Full-height cinematic artwork; the image element avoids fragile CSS-relative URLs. */
.stellar-welcome-hero{position:relative;background:#0a1a2c;isolation:isolate}
.stellar-welcome-backdrop{
 position:absolute;inset:0;z-index:0;
 display:block;width:100%;height:100%;max-width:none;max-height:none;
 object-fit:cover;object-position:50% 50%;
 filter:saturate(1.16) contrast(1.08);pointer-events:none;user-select:none;
}
.stellar-welcome-hero-shade{
 z-index:1;
 background:linear-gradient(180deg,rgba(3,11,25,.30) 0%,transparent 33%,
            rgba(2,10,27,.2) 65%,rgba(1,9,25,.83) 100%),
            linear-gradient(90deg,rgba(3,12,26,.16),rgba(3,15,34,.08));
}
.stellar-welcome-hero:before{z-index:2}
.stellar-welcome-emblem,.stellar-welcome-hero-label{z-index:3}
.stellar-welcome-copy{justify-content:safe center}
@media(max-width:760px){
 .stellar-welcome-dialog{height:calc(100dvh - 14px);max-height:900px}
 .stellar-welcome-hero{flex:0 0 clamp(118px,19dvh,158px);min-height:105px}
 .stellar-welcome-backdrop{object-position:50% 54%}
 .stellar-welcome-emblem{width:54px;height:54px}
 .stellar-welcome-copy{flex:1 1 auto;min-height:0;overflow-y:auto;justify-content:flex-start;
   padding:14px 15px 18px;overscroll-behavior:contain}
 .stellar-welcome-copy h2{font-size:clamp(22px,6vw,29px)!important;line-height:1.15!important}
 .stellar-welcome-lead{font-size:clamp(13px,3.6vw,15px)!important;line-height:1.48!important}
 .stellar-welcome-tip strong{font-size:13px;line-height:1.25}
 .stellar-welcome-tip small{font-size:12px;line-height:1.44}
 .stellar-welcome-bottom{display:flex;flex-direction:column;align-items:stretch;gap:7px;
   padding:9px max(10px,env(safe-area-inset-right)) max(11px,env(safe-area-inset-bottom))}
 .stellar-welcome-tracker{width:100%;justify-content:space-between}
 .stellar-welcome-topic{flex:1 1 auto;width:auto;max-width:none;min-width:0;min-height:38px;font-size:12px}
 .stellar-welcome-controls{display:flex;width:100%;gap:8px}
 .stellar-welcome-back,.stellar-welcome-next{flex:1 1 0;min-height:43px;font-size:12px}
 .stellar-welcome-next{min-width:0}
}
@media(max-width:380px){
 .stellar-welcome-hero{flex-basis:115px}
 .stellar-welcome-copy{padding:11px 12px 14px}
 .stellar-welcome-copy h2{font-size:22px!important}
 .stellar-welcome-topic{max-width:none;font-size:11px}
 .stellar-welcome-bottom{padding-left:9px;padding-right:9px}
 .stellar-welcome-topline{padding-left:10px;padding-right:10px}
}
@media(max-height:620px) and (max-width:760px){
 .stellar-welcome-hero{flex-basis:98px;min-height:98px}
 .stellar-welcome-emblem{width:40px;height:40px;padding:3px}
 .stellar-welcome-hero-label{font-size:9px}
 .stellar-welcome-copy{padding-top:10px}
 .stellar-welcome-bottom{padding-top:5px;padding-bottom:6px}
}
