/* Studio 1.4 — Skyline. Work Sans typography, daylight, five reward effects. */
:root{--eg-type:'Work Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body,body.dark,button,input,select,textarea,#hubOptionsPortal,#hubOptionsPortal button,#egRewardToast,.modal-box,.projector,.study-projection{font-family:var(--eg-type)!important}
#shell :where(h1,h2,h3,h4,button,input,select,textarea,.stat-value,.paper-action-card>strong,.paper-action-graphic){font-family:var(--eg-type)!important}
/* Preserve Arabic calligraphy and specialist language typography. */
#shell [lang=ar],#shell [lang=ar] *{font-family:'Arabic Typesetting','Traditional Arabic','Amiri',serif!important}
body.hub-violet-page #hubBoard.hub-native.hub-gold.hub-violet{background:radial-gradient(ellipse at 93% 6%,#ffffffb8 0%,#ffffff30 19%,transparent 48%),radial-gradient(ellipse at 45% 100%,#fffae7 0%,transparent 53%),linear-gradient(170deg,#c8eaf1 0%,#d5f0ed 38%,#e9f4e9 76%,#fff7e0 100%)!important}
#hubBoard .hv-top{background:linear-gradient(100deg,#07523e,#116e53 66%,#0a4c39)!important;border-bottom:1px solid #d2b45a!important}
#hubBoard .hub-header{padding:18px 0 18px!important;border-color:#ffffffaf!important;gap:18px}
#hubBoard .hub-brand{gap:13px!important;align-items:center;min-width:0}
#hubBoard .eg-class-icon{width:52px;height:52px;border-radius:13px;border:1px solid #7bbda1!important;background:linear-gradient(155deg,#fffefb,#d6eee3)!important;box-shadow:0 3px 10px #175e3914!important;flex:none}
#hubBoard .eg-class-icon .hv-icon{color:#166447!important;stroke:currentColor!important;width:27px;height:27px}
#hubBoard .eg-class-heading{display:flex;align-items:center;gap:13px;min-width:0}
#hubBoard #hvClass{font-family:var(--eg-type)!important;font-size:clamp(29px,3vw,43px)!important;font-weight:800!important;line-height:1.08!important;letter-spacing:-1.8px;padding:2px 8px 2px 0!important;min-width:62px;max-width:155px;width:auto;color:#104d3b!important;-webkit-text-fill-color:#104d3b!important;text-shadow:none!important;background:transparent!important;cursor:pointer}
#hubBoard #hvClass option{font-family:var(--eg-type)!important;font-size:16px!important;letter-spacing:0;color:#154b36!important;background:white!important}
#hubBoard .eg-class-heading p{border-left:1px solid #bfa247;padding-left:13px;white-space:normal;font-size:clamp(11px,1.12vw,16px)!important;line-height:1.3;font-weight:600;color:#254f43!important;letter-spacing:-.25px;max-width:160px;margin:0!important}
#hubBoard .hub-tabs{background:#f7fdfaef!important;box-shadow:0 3px 11px #145e4220!important;border-color:#b3d4ce!important}
#hubBoard .hub-header .hub-tabs button:not(.active){background:transparent!important;border-color:transparent!important}
#hubBoard .hub-header .hub-tabs .active,#hubBoard .hv-nav button.active{background:linear-gradient(155deg,#23825c,#0b4e37)!important;border-color:#d6b95a!important;box-shadow:0 0 9px #dfc66a66,inset 0 1px 0 #fff4!important;color:#fff!important}
#hubBoard .hub-dock{background:linear-gradient(135deg,#1a7754,#0c4836)!important;border:1px solid #c3a857!important;box-shadow:0 4px 18px #15614738,0 0 0 2px #f6dea080!important}
#hubBoard .hub-tile strong{font-weight:700!important;letter-spacing:-.45px}
#hubBoard .hub-last{font-weight:500!important}
#hubBoard .hub-grid{padding-top:20px!important;overflow:visible!important}
#hubBoard .hv-clouds{background:url('assets/hub-clouds-volumetric.webp?v=1.4.1') center bottom / 100% 100% no-repeat!important;height:clamp(148px,30vh,320px)!important;opacity:1!important;pointer-events:none!important}
@media(max-width:760px){#hubBoard .hv-clouds{height:clamp(130px,24vh,210px)!important;background-size:auto 100%!important}}
#hubBoard .eg-bird-sky{opacity:.52;color:#43806d}
#hubBoard .hub-grid .hub-tile:has(.eg-powered),#hubBoard .hub-grid .hub-tile:has(.eg-deducted){z-index:8!important;overflow:visible!important}
/* FX layers are outside the character illustration, with noninteractive particles. */
.eg-powered,.eg-deducted{overflow:visible!important;isolation:isolate;position:relative!important;filter:none!important}
.eg-powered>.eg-power-fx,.eg-deducted>.eg-power-fx{position:absolute!important;inset:0!important;overflow:visible!important;pointer-events:none!important;z-index:auto!important;isolation:auto!important}
.eg-powered>svg,.eg-powered>img,.eg-powered>span:not(.hv-class-mascot){position:relative;z-index:3!important;animation:eg-tier-bounce .85s ease-out both!important}
.eg-powered.eg-level-5>svg,.eg-powered.eg-level-5>img,.eg-powered.eg-level-5>span:not(.hv-class-mascot){animation:eg-five-lift 2.3s ease-out both!important}
.eg-powered .hub-badge{z-index:12!important}
.eg-bloom,.eg-flame-art,.eg-flame-light,.eg-floor,.eg-sunburst,.eg-sweep,.eg-arc,.eg-spark{position:absolute;display:block;pointer-events:none!important}
.eg-bloom{inset:-15%;z-index:0;background:radial-gradient(ellipse,#fff9bde6 0%,#ffd04a70 31%,#ffde4a33 54%,transparent 72%);animation:eg-bloom-in 1.55s ease-out both}
.eg-tier-1 .eg-bloom{inset:-3%;opacity:.45;background:radial-gradient(ellipse,#fff9cfc0 0%,#ffd65a45 45%,transparent 72%)}
.eg-tier-2 .eg-bloom{inset:-16%;background:radial-gradient(ellipse,#fff7b3d0,#ffe56555 40%,transparent 72%)}
.eg-tier-3 .eg-bloom,.eg-tier-4 .eg-bloom{inset:-35%;background:radial-gradient(ellipse,#fffddc 0%,#ffdb4a9c 24%,#ffcf3963 43%,transparent 74%)}
.eg-tier-5 .eg-bloom{inset:-65% -55% -35%;background:radial-gradient(ellipse,#fffce2 0%,#ffdd5590 36%,#ffad123b 56%,transparent 74%);animation:eg-five-bloom 2.3s ease-out both}
.eg-flame-art,.eg-flame-light{left:50%;bottom:-10%;width:230%;height:250%;transform:translateX(-50%);z-index:1;background:url('assets/reward-transformation.svg') center bottom/contain no-repeat;animation:eg-flame-rise 2.25s ease-out both;filter:drop-shadow(0 0 5px #ffc52b)}
.eg-flame-light{width:192%;height:213%;bottom:-8%;opacity:.7;filter:drop-shadow(0 0 3px #fff4b2) brightness(1.13);animation:eg-flame-shimmer 2.25s ease-out both}
.eg-floor{left:50%;bottom:-3%;width:145%;height:28%;border:2px solid #fff9d5;border-radius:50%;box-shadow:0 0 3px 1px #db8b09,0 0 8px 2px #ffcf3f,inset 0 0 8px #fff4ae;transform:translateX(-50%);z-index:2;animation:eg-floor-ring 1.55s ease-out both}
.eg-tier-5 .eg-floor{width:192%;height:39%;border:3px solid #fffbd4;box-shadow:0 0 6px #f79a00,0 0 13px #ffb72a,inset 0 0 8px #ffdf5f;animation:eg-floor-ring 2.2s ease-out both}
.eg-tier-5 .eg-floor-secondary{width:153%;height:26%;bottom:3%;border-width:1.5px;animation:eg-floor-ring 2.2s .08s ease-out both}
.eg-sunburst{inset:-51%;border-radius:50%;z-index:1;background:repeating-conic-gradient(from 11deg,transparent 0deg 13deg,#fffbe1 14deg 14.9deg,transparent 16deg 23deg);mask-image:radial-gradient(ellipse,transparent 27%,#000 40%,#0009 56%,transparent 70%);animation:eg-burst 1.35s ease-out both;filter:drop-shadow(0 0 2px #eab342)}
.eg-sweep,.eg-arc{left:50%;top:50%;width:170%;height:64%;z-index:4;border-radius:50%;border:3px solid transparent;border-bottom-color:#fffced;border-left-color:#ffe99a;box-shadow:0 2px 4px #e7a321;transform:translate(-50%,-50%) rotate(-22deg);animation:eg-orbit 1.5s ease-out both}
.eg-sweep-b{width:155%;height:55%;border-bottom-color:#ffd052;border-left-color:transparent;transform:translate(-50%,-50%) rotate(25deg);animation:eg-orbit-b 1.5s ease-out both}
.eg-arc{width:205%;height:73%;opacity:.8;top:66%;border-width:2px;animation:eg-orbit 2.1s ease-out both}.eg-arc-b{width:181%;height:62%;animation:eg-orbit-b 2.1s ease-out both}
.eg-spark{left:50%;top:50%;width:var(--size);height:var(--size);z-index:5;background:#fffbed;border-radius:1px;clip-path:polygon(50% 0%,64% 36%,100% 50%,64% 64%,50% 100%,36% 64%,0% 50%,36% 36%);filter:drop-shadow(0 0 3px #dca620);transform:rotate(var(--angle)) translateY(-26px);animation:eg-spark-out 1.3s ease-out var(--delay) both}
.eg-tier-5 .eg-spark{background:#fffdfa;animation-duration:2s}
.eg-power-fx .eg-power-number{font-family:var(--eg-type)!important;font-weight:900!important;font-size:25px!important;top:-19%;color:#89500a;text-shadow:0 1px 1px #fffbe1,0 0 6px #fff8c0;z-index:15;animation:eg-rise 1.5s ease-out both}
.eg-tier-5 .eg-power-number{font-size:38px!important;top:-38%;color:#925304;-webkit-text-stroke:1px #fff5b2;text-shadow:0 2px 1px #f5ce60,0 0 10px #ffca25,0 0 16px #fff2a3;animation:eg-five-number 2.2s ease-out both}
.eg-negative .eg-power-number{color:#b82e36!important}
@keyframes eg-bloom-in{0%{opacity:0;transform:scale(.65)}22%{opacity:.92;transform:scale(1.1)}70%{opacity:.6}100%{opacity:0;transform:scale(1.25)}}
@keyframes eg-five-bloom{0%{opacity:0;transform:scale(.6)}20%{opacity:1;transform:scale(1.04)}45%{opacity:.82;transform:scale(1)}70%{opacity:.98;transform:scale(1.08)}100%{opacity:0;transform:scale(1.15)}}
@keyframes eg-flame-rise{0%{opacity:0;transform:translateX(-50%) scale(.62,.42);transform-origin:50% 95%}20%{opacity:1;transform:translateX(-50%) scale(1.04,1.09);transform-origin:50% 95%}39%{transform:translateX(-50%) scale(.98,.97);transform-origin:50% 95%}55%{transform:translateX(-50%) scale(1.03,1.05);transform-origin:50% 95%}72%{opacity:.95;transform:translateX(-50%) scale(1,1.02);transform-origin:50% 95%}100%{opacity:0;transform:translateX(-50%) scale(1.12,1.18);transform-origin:50% 95%}}
@keyframes eg-flame-shimmer{0%,100%{opacity:0;transform:translateX(-50%) scale(.75,1)}23%{opacity:.65;transform:translateX(-50%) scale(1,1.08)}45%{opacity:.43;transform:translateX(-50%) scale(.93,1.02)}68%{opacity:.73;transform:translateX(-50%) scale(1.02,1.12)}}
@keyframes eg-floor-ring{0%{opacity:0;transform:translateX(-50%) scale(.6)}25%{opacity:1;transform:translateX(-50%) scale(1.03)}75%{opacity:.9;transform:translateX(-50%) scale(1.06)}100%{opacity:0;transform:translateX(-50%) scale(1.35)}}
@keyframes eg-burst{0%{opacity:0;transform:scale(.55) rotate(-8deg)}20%{opacity:1;transform:scale(1.02) rotate(0)}100%{opacity:0;transform:scale(1.2) rotate(10deg)}}
@keyframes eg-orbit{0%{opacity:0;transform:translate(-50%,-50%) rotate(-42deg) scale(.62)}25%{opacity:1;transform:translate(-50%,-50%) rotate(-20deg) scale(1)}75%{opacity:.8;transform:translate(-50%,-50%) rotate(9deg) scale(1.02)}100%{opacity:0;transform:translate(-50%,-50%) rotate(22deg) scale(1.2)}}
@keyframes eg-orbit-b{0%{opacity:0;transform:translate(-50%,-50%) rotate(35deg) scale(.62)}25%{opacity:1;transform:translate(-50%,-50%) rotate(18deg) scale(1)}75%{opacity:.8;transform:translate(-50%,-50%) rotate(-12deg) scale(1.02)}100%{opacity:0;transform:translate(-50%,-50%) rotate(-24deg) scale(1.2)}}
@keyframes eg-spark-out{0%{opacity:0;transform:rotate(var(--angle)) translateY(-22px) scale(.5)}25%{opacity:1;transform:rotate(var(--angle)) translateY(calc(var(--reach) * -.7)) scale(1)}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(var(--reach) * -1.3)) scale(.7)}}
@keyframes eg-tier-bounce{0%,100%{transform:translateY(0) scale(1)}26%{transform:translateY(-4px) scale(1.09)}60%{transform:translateY(-1px) scale(1.02)}}
@keyframes eg-five-lift{0%,100%{transform:translateY(0) scale(1);filter:none}20%{transform:translateY(-4px) scale(1.1);filter:drop-shadow(0 0 3px #fff3ad)}42%,73%{transform:translateY(-8px) scale(1.13);filter:drop-shadow(0 0 3px #fff1b0) drop-shadow(0 0 6px #fdb924)}}
@keyframes eg-five-number{0%{opacity:0;transform:translate(-50%,9px) scale(.55)}20%{opacity:1;transform:translate(-50%,-17px) scale(1.1)}70%{opacity:1;transform:translate(-50%,-23px) scale(1)}100%{opacity:0;transform:translate(-50%,-43px) scale(1)}}
/* Preview in a modal only, never crowd the normal classroom. */
#modalShade .eg-guide-modal{width:min(960px,96vw)!important;max-width:960px!important;overflow:auto!important}
.eg-guide{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:28px 3px 8px;overflow:visible}
.eg-guide-tile{position:relative;min-height:180px;border:1px solid #9ab795!important;background:#edf6e9!important;border-radius:14px!important;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:17px 6px 12px!important;color:#234d38!important;overflow:visible!important;box-shadow:none!important}
.eg-guide-tile:has(.eg-powered){z-index:6}.eg-guide-tile .hub-character{margin:0!important;width:69px;height:69px}.eg-guide-tile .hub-character>svg{width:69px;height:69px}.eg-guide-tile strong{font-size:21px;color:#155b3b}.eg-guide-tile small{font-weight:600;font-size:12px}.eg-guide-tile>span{font-size:10px;color:#4a705b}
@media(max-width:1000px){#hubBoard .eg-class-heading{gap:9px}#hubBoard .eg-class-heading p{padding-left:9px;max-width:130px}#hubBoard .eg-class-icon{width:43px;height:43px}}
@media(max-width:600px){#hubBoard .eg-class-icon{display:none}#hubBoard #hvClass{font-size:29px!important;min-width:48px}#hubBoard .eg-class-heading p{font-size:11px!important;max-width:100px}.eg-guide{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.eg-guide-tile{min-height:155px}}
@media(prefers-reduced-motion:reduce){.eg-power-fx *,.eg-powered>svg,.eg-powered>img,.eg-powered>span{animation:none!important}.eg-spark,.eg-sunburst,.eg-flame-light,.eg-arc,.eg-sweep{display:none!important}.eg-flame-art{opacity:.75;transform:translateX(-50%) scale(.9)}.eg-power-fx .eg-power-number{opacity:1;transform:translate(-50%,-10px)}.eg-bloom{opacity:.45}}
