#dlgAcad {
  --gold:#ffe5a0;
  box-sizing:border-box; width:min(856px,calc(100vw - 20px)); max-width:none;
  height:fit-content!important; min-height:0!important; max-height:96vh; max-height:96dvh; padding:15px 3px;
  margin:auto; overflow:visible; border:0; border-radius:0; background:transparent!important;
  box-shadow:none; color:#fff6e2; color-scheme:dark;
}
#dlgAcad[open] {display:flex;flex-direction:column}
body.cosmos dialog#dlgAcad[open] {background:none!important}
#dlgAcad::backdrop {background:rgb(8 4 25 / .7);backdrop-filter:blur(3px)}
#dlgAcad .acPanel {
  position:relative; isolation:isolate; display:flex; flex-direction:column; min-height:0;
  padding:clamp(16px,2.4vw,27px) clamp(17px,3vw,39px) clamp(20px,2.5vw,32px);
  border-radius:clamp(20px,3vw,42px);
  background:radial-gradient(ellipse at 87% 14%,#3b165663,transparent 28%),
    radial-gradient(ellipse at 2% 76%,#6329a980,transparent 26%),
    linear-gradient(150deg,#261050,#10082e 35%,#080521 70%,#300d52);
  box-shadow:0 12px 40px #040015bd,inset 0 0 32px #9a36ed6b;
}
#dlgAcad .acPanel::before {
  content:""; position:absolute; z-index:2; pointer-events:none; inset:0;
  border-radius:inherit; border:24px solid transparent;
  border-image:url("gold-frame.webp") 24 / 24px stretch; clip-path:inset(0 round 5% / 6%);
}
#dlgAcad .acPanel::after {
  content:""; position:absolute; inset:10px; z-index:-1; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg,transparent 2%,#100625e6 34%,#13072ddc 88%,#1d0a4b91),
             url("../star-path/sky-detail.webp") center top/100% auto no-repeat; opacity:.72;
}
#dlgAcad .acFinial {
  position:absolute; top:-14px; left:48.9%; transform:translateX(-50%); width:29px; height:37px;
  z-index:3; pointer-events:none; filter:drop-shadow(0 0 4px #fc9d25);
}
#dlgAcad .acFinial.bottom {top:auto;bottom:-14px}
#dlgAcad .acFinial::before,#dlgAcad .acFinial::after {
  content:"";position:absolute;inset:0;
  background:conic-gradient(from 25deg,#fff1b7,#a95309,#ffdb70,#fffce3,#c16b12,#fff1b7);
  clip-path:polygon(50% 0,58% 36%,100% 50%,58% 61%,50% 100%,41% 61%,0 50%,41% 36%);
}
#dlgAcad .acFinial::after {inset:7px 8px;background:#ffe37b}
#dlgAcad .acHead {
  flex:none; position:relative; display:grid; grid-template-columns:clamp(76px,10vw,148px) minmax(0,1fr) auto;
  align-items:center; gap:clamp(3px,1vw,12px);min-height:84px; padding:0;
}
#dlgAcad .acHat {
  display:block; height:100%; min-height:84px;
  background:url("mortarboard.webp") center/contain no-repeat;
  mask-image:radial-gradient(ellipse closest-side at center,#000 68%,#000b 83%,transparent 100%);
}
#dlgAcad h2 {
  margin:0;color:#ffdf88; font:italic 700 clamp(27px,3.2vw,45px)/1.07 Georgia,"Times New Roman",serif;
  text-shadow:0 1px 1px #fff3a4,0 2px 3px #8f3907,0 0 13px #d66627a1;
}
#dlgAcad .acClose {
  justify-self:end; margin:0; min-height:42px;padding:7px 18px; border:2px solid #ffce77;
  border-radius:28px; color:#fff2cf; font:700 19px/1.1 Georgia,serif;
  background:linear-gradient(#1e255f,#0c102f 55%,#2b114d);
  box-shadow:inset 0 0 0 2px #8f603c,inset 0 0 9px #3274c1,0 0 8px #f39338;
  cursor:pointer;
}
#dlgAcad .acIntro {
  flex:none; margin:7px 0 0; text-align:center;
  color:#fff1ff; font:500 clamp(14px,1.3vw,18px)/1.4 Georgia,serif;
}
#dlgAcad .acRule {
  flex:none; position:relative; height:1px; margin:14px 0 14px;
  background:linear-gradient(90deg,transparent,#ae7039 24%,#ffe4a0 50%,#ae7039 76%,transparent);
}
#dlgAcad .acRule::after {content:"✦";position:absolute;left:50%;top:50%;transform:translate(-50%,-52%);color:#ffd27c;text-shadow:0 0 6px #f18411;font-size:19px}
#dlgAcad #acadBody {
  position:relative; display:flex; flex-direction:column; gap:clamp(7px,.8vw,11px);
  min-height:0; max-height:none; margin:0 -4px; padding:6px 4px!important;
  overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#8667a4 #110b28;
}
#dlgAcad .lesson {
  --edge:#f4ba65;--haze:#d77e24;--art:url("spiral.webp");flex:none;
  margin:0;padding:0; border:0; border-radius:17px;background:#110d2a;
}
#dlgAcad .lesson:nth-child(2){--edge:#db97fd;--haze:#a534e1;--art:url("saturn.webp")}
#dlgAcad .lesson:nth-child(3){--edge:#8dd3ff;--haze:#435cff;--art:url("crystals.webp")}
#dlgAcad .lesson:nth-child(4){--edge:#94e6fc;--haze:#1988b8;--art:url("pavilion.webp")}
#dlgAcad .lesson:nth-child(5){--edge:#ffc39c;--haze:#de4494;--art:url("mars.webp")}
#dlgAcad .lesson:nth-child(6){--edge:#bbb8ff;--haze:#5a5df5;--art:url("compass.webp")}
#dlgAcad .lesson.done {--edge:#aeff95;--haze:#27de7d}
#dlgAcad .lesson summary {
  position:relative; isolation:isolate; box-sizing:border-box; min-height:clamp(48px,5.25vw,62px);
  display:flex;align-items:center;gap:clamp(9px,1.5vw,19px);padding:8px clamp(14px,2vw,27px);
  border:1.5px solid var(--edge); border-radius:17px; list-style:none;overflow:hidden;
  cursor:pointer;color:#ffe9b0;font:700 clamp(18px,1.9vw,26px)/1.15 Georgia,serif;
  background:linear-gradient(145deg,#191054,#0c0b27 43%,#201044);
  box-shadow:inset 0 0 2px 1px var(--edge),inset 0 0 11px var(--haze),0 0 6px color-mix(in srgb,var(--haze) 65%,transparent);
}
#dlgAcad .lesson summary::-webkit-details-marker {display:none}
#dlgAcad .lesson summary::before {
  content:"";position:absolute; z-index:-1;inset:2px 2px 2px auto;width:64%; border-radius:inherit;pointer-events:none;
  background:var(--art) right center/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent,#0006 23%,#000 57%);
}
#dlgAcad .lesson summary::after {
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 0 8px var(--haze);
}
#dlgAcad .lesson.done summary {color:#e2ffcd;background:linear-gradient(100deg,#12362a,#071c22 60%,#151431)}
#dlgAcad .acArrow {
  width:.8em;height:.84em;flex:none;display:inline-block;
  background:linear-gradient(152deg,#fff9c9 20%,#ffc24d 47%,#f38411 64%,#ffda78);
  clip-path:polygon(5% 0,98% 50%,5% 100%);
}
#dlgAcad .lesson[open] .acArrow {transform:rotate(90deg)}
#dlgAcad .lesson.done .acArrow {background:linear-gradient(150deg,#fffdd6,#77ff72 65%,#17b25c)}
#dlgAcad .acTitle {max-width:84%;text-shadow:0 2px 3px #080320,0 0 5px #090323}
#dlgAcad .acMark {color:#bdff9b;white-space:nowrap;text-shadow:0 0 5px #3bc444}
#dlgAcad .acMark[hidden] {display:none}
#dlgAcad .acRead {padding:10px 19px 15px;border:1px solid #a48ad666;border-top:0;border-radius:0 0 14px 14px;background:#100e2c}
#dlgAcad .acRead p {margin:0;color:#fbf5ff;font:500 clamp(15px,1.3vw,18px)/1.5 system-ui,sans-serif}
#dlgAcad .acRead .btn {margin-top:11px;min-height:42px}
#dlgAcad summary:focus-visible,#dlgAcad button:focus-visible {outline:2px solid #fff4bf;outline-offset:-4px}
@media (hover:hover) {#dlgAcad summary:hover,#dlgAcad .acClose:hover{filter:brightness(1.13)}}
@media (max-width:580px) {
  #dlgAcad .acPanel {padding:15px 15px 19px}
  #dlgAcad .acHead {grid-template-columns:46px minmax(0,1fr) auto;gap:5px;min-height:48px}
  #dlgAcad .acHat {min-height:47px}
  #dlgAcad h2 {font-size:clamp(20px,5.8vw,29px)}
  #dlgAcad .acClose {font-size:15px;padding:6px 9px;min-height:42px}
  #dlgAcad .acIntro {margin-top:7px}
  #dlgAcad .lesson {border-radius:13px}
  #dlgAcad .lesson summary {padding:8px 11px;font-size:clamp(16px,4.7vw,21px)}
  #dlgAcad .lesson summary::before {mask-image:linear-gradient(90deg,transparent,#0003 36%,#000d 82%)}
  #dlgAcad .acRead {padding:10px 13px 15px}
}
@media (max-height:510px) {
  #dlgAcad {max-height:99dvh;padding-block:9px}
  #dlgAcad .acFinial {width:23px;height:24px;top:-9px}
  #dlgAcad .acFinial.bottom {top:auto;bottom:-9px}
  #dlgAcad .acPanel {padding-block:12px}
  #dlgAcad .acHead,#dlgAcad .acHat {min-height:38px;height:38px}
  #dlgAcad .acHead {grid-template-columns:54px minmax(0,1fr) auto}
  #dlgAcad h2 {font-size:25px}
  #dlgAcad .acClose {min-height:36px;font-size:16px}
  #dlgAcad .acIntro {font-size:14px;margin-top:3px}
  #dlgAcad .acRule {margin:8px 0}
  #dlgAcad .lesson summary {min-height:42px;font-size:18px}
}
