.starlight-hall{background:#082449;overflow:hidden}
.starlight-world{z-index:0}
.starlight-world .world-fill img{object-fit:fill}
.stars-globe img{animation:stars-globe-turn 70s linear infinite;transform-origin:center}
.stars-spark img{animation:stars-spark 5s ease-in-out infinite}
.starlight-hall>.piece{z-index:3}
.starlight-hall>.stars-ribbon{z-index:1;pointer-events:none}
.starlight-hall>.stars-mascot{z-index:6;pointer-events:none}
.stars-mascot>span{display:block;width:100%;height:100%;animation:stars-mascot 6s ease-in-out infinite;transform-origin:50% 90%}
.stars-orb>span{display:block;width:100%;height:100%;animation:stars-orb 6s ease-in-out infinite}
.stars-orb img{display:block;width:100%;height:100%;object-fit:contain}
.stars-orb.is-learned img{filter:drop-shadow(0 0 15px #ffd17470)}
.stars-orb:hover img,.stars-orb:focus-visible img{transform:scale(1.04);filter:drop-shadow(0 0 18px #ffecb8)}
.stars-orb[data-area="graphic"]>span{animation-delay:-2s}
.stars-orb[data-area="rhyme"]>span{animation-delay:-4s}
.stars-orb[data-area="knowledge"]>span{animation-delay:-1s}
.starlight-hall>.stars-area-label{z-index:5;filter:grayscale(1);opacity:.85}
.starlight-hall>.stars-area-label.is-learned{filter:none;opacity:1}
.stars-area-label>span:first-child{display:block;width:100%;height:100%;pointer-events:none;opacity:.75;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px #bad8ff)}
.stars-area-label>span:first-child img{display:block;width:100%;height:100%;object-fit:fill}
.stars-area-label .stars-area-icon{position:absolute;left:25px;top:12px;width:65px;height:55px;object-fit:contain;pointer-events:none}
.stars-area-label strong{position:absolute;left:128px;top:10px;font-size:26px;line-height:1.2;font-weight:600;white-space:nowrap;pointer-events:none}
.stars-area-status{position:absolute;left:128px;top:43px;width:103px;text-align:center;font-size:17px;line-height:1.2;pointer-events:none}
.stars-area-label::after{content:'';position:absolute;left:103px;top:14px;width:1px;height:52px;background:#d4eaffb3;pointer-events:none}
.stars-area-label:hover,.stars-area-label:focus-visible{filter:brightness(1.15);opacity:1}
.stars-area-label:hover img,.stars-area-label:focus-visible img{transform:none;filter:none}
.starlight-hall>.stars-unlock{z-index:4}
.stars-unlock>span:first-child{display:block;width:100%;height:100%}
.stars-unlock>span:first-child img{display:block;width:100%;height:100%;object-fit:contain}
.stars-unlock-copy{position:absolute;left:120px;right:72px;top:40px;pointer-events:none}
.stars-unlock-copy strong{display:flex;align-items:center;justify-content:center;gap:12px;font-size:38px;font-weight:700;line-height:1.3;white-space:nowrap}
.stars-unlock-copy strong::before{content:'★';font-size:50px;color:#fff;filter:drop-shadow(0 0 12px #fff7af)}
.stars-unlock-copy strong::after{content:'›';font-size:50px;font-weight:400}
.stars-unlock-copy>span{display:block;margin-top:3px;font-size:19px;text-align:center;white-space:nowrap}
.stars-unlock.is-unlocked{filter:drop-shadow(0 0 12px #ffe09a88)}
.stars-unlock:hover img,.stars-unlock:focus-visible img{transform:scale(1.025)}
.stars-progress{position:absolute;left:50%;bottom:65px;translate:-50% 0;width:260px;height:9px;border-radius:20px;border:1px solid #c0e5ff88;background:#082c4b99;z-index:5;overflow:hidden}
.stars-progress::after{content:'';display:block;width:var(--stars-progress,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,#ffd3a1,#ffefbb);box-shadow:0 0 12px #ffda86;transition:width .4s}
.stars-progress-text{position:absolute;left:50%;bottom:25px;translate:-50% 0;margin:0;font-size:21px;letter-spacing:1px;white-space:nowrap;text-shadow:0 2px 8px #002c65;z-index:5;pointer-events:none}
.starlight-entry-progress{position:absolute;right:22px;top:56px;min-width:60px;padding:2px 10px;border:1px solid #d8edff88;border-radius:30px;background:#16447de0;color:#fff2c7;font-size:16px;line-height:1.1;pointer-events:none;text-align:center}
dialog.starlight-certificate{width:min(96vw,640px);height:calc(var(--visible-height,100dvh) - 24px);max-height:none;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.starlight-certificate #detail-art{min-height:0;display:flex;align-items:center;justify-content:center;padding:0 30px;background:none;overflow:hidden;touch-action:pan-x pan-y pinch-zoom}
.starlight-certificate #detail-art img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:none;user-select:auto;-webkit-touch-callout:default}
.starlight-certificate #close{top:0;right:0;background:#123857dc}
.starlight-certificate .detail-copy{padding:8px 0 0;align-self:stretch;text-align:center;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.starlight-certificate #detail-tag,.starlight-certificate #detail-title,.starlight-certificate #detail-text{display:none}
.starlight-certificate .stars-save-hint{width:100%;margin:0;color:#e9efff;font-size:13px;line-height:1.5}
.stars-certificate-actions{display:flex;gap:8px;justify-content:center}
.stars-certificate-actions button,.starlight-certificate #detail-done{margin:0;padding:9px 16px;min-height:38px;font-size:13px;border:1px solid #b4e3ff99;border-radius:24px;background:#245e9bdc}
.stars-certificate-actions button:first-child{background:#e5f5ff;color:#16436c}
.stars-certificate-actions button:disabled{opacity:.5;cursor:wait}
.stars-certificate-actions [hidden]{display:none!important}
.stars-generating{font-size:15px;letter-spacing:2px}
@keyframes stars-globe-turn{to{rotate:360deg}}
@keyframes stars-spark{50%{opacity:.4}}
@keyframes stars-mascot{50%{transform:translateY(-8px) rotate(.8deg)}}
@keyframes stars-orb{50%{transform:translateY(-9px)}}
@media(max-height:500px){
 .starlight-certificate #detail-art{padding:0 34px}
 .starlight-certificate .detail-copy{padding-top:5px;gap:5px}
 .starlight-certificate .stars-save-hint{font-size:11px;line-height:1.3}
 .stars-certificate-actions button,.starlight-certificate #detail-done{min-height:30px;padding:5px 12px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.starlight-world img,.stars-mascot>span,.stars-orb>span{animation:none}.stars-progress::after{transition:none}}
