
.al-grade{
  position: fixed;
  inset: 0;
  z-index: 99550;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1b1450 0%, #0b0b2a 55%, #070912 100%);
  transition: opacity .5s cubic-bezier(.65,0,.35,1);
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.al-grade.out{ opacity: 0; }
.al-grade .dot{ position: absolute; border-radius: 50%; background: #fff; }
.al-grade-stage{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1194px;
  height: 834px;
  transform-origin: 50% 50%;
}
.al-grade-stage .planet{ position: absolute; opacity: .9; transform: translate(-50%,-50%); }
.al-grade-stage .el{ position: absolute; transform: translate(-50%,-50%); }
.al-grade-stage .stars{ display: flex; gap: 2.2%; justify-content: center; align-items: center; transform-origin: 0 0; }
.al-grade-stage .star{ position: relative; transform: scale(0); transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.al-grade-stage .star.in{ transform: scale(1); }
.al-grade-stage .star svg{ width: 100%; height: 100%; overflow: visible; }
.al-grade-stage .star .fill{ fill: #ffc93a; transform-origin: 50% 55%; transform: scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1) .12s; }
.al-grade-stage .star.gold .fill{ transform: scale(1); }
.al-grade-stage .star .rim{ fill: none; stroke: #fff; stroke-width: 7; stroke-linejoin: round; opacity: .9; }
.al-grade-stage .star.gold .rim{ stroke: #ffb000; }
.al-grade-stage .star .shine{ opacity: 0; }
.al-grade-stage .shiny .star .shine{ animation: alGradeSh 1.1s ease-in-out infinite; }
.al-grade-stage .shiny .star:nth-child(2) .shine{ animation-delay: .18s; }
.al-grade-stage .shiny .star:nth-child(3) .shine{ animation-delay: .36s; }
@keyframes alGradeSh{ 0%,100%{ opacity: 0; } 50%{ opacity: .85; } }
.al-grade-stage .star::before{ content: ''; position: absolute; left: -70px; top: -70px; width: 290px; height: 290px; z-index: -1;
  background: url('../assets/grade/star-glow.webp?v=1') center / 100% 100% no-repeat;
  opacity: 0; transition: opacity .6s; pointer-events: none; }
.al-grade-stage .shiny .star::before{ opacity: 1; }
.al-grade-stage .rays{ position: absolute; inset: -60%; opacity: 0; transition: opacity .6s; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255,215,90,.32) 0 8deg, transparent 8deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%);
  animation: alGradeSpin 9s linear infinite; }
.al-grade-stage .shiny .rays{ opacity: 1; }
@keyframes alGradeSpin{ to{ transform: rotate(360deg); } }
.al-grade-stage .party{ opacity: 0; transform: translate(-50%,-50%) scale(.4); transition: opacity .3s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.al-grade-stage .party.in{ opacity: 1; transform: translate(-50%,-50%) scale(1); }
.al-grade-stage .party img, .al-grade-stage .party > div{ width: 100%; height: 100%; object-fit: contain; }
.al-grade-stage .gpill{ position: absolute; transform: translate(-50%,-50%); transform-origin: 0 0; background: #fff; border-radius: 18px;
  padding: 11px 26px; box-shadow: 0 8px 22px rgba(0,0,0,.28); font-family: var(--font-read); font-weight: 800; color: #4A4036;
  letter-spacing: .3px; font-size: 44px; line-height: 1.45; white-space: nowrap; opacity: 0; transition: opacity .25s; z-index: 5; }
.al-grade-stage .gpill.on{ opacity: 1; }
.al-grade-stage .gpill .syl{ display: inline-block; transition: color .1s; }
.al-grade-stage .gpill .syl.lit{ color: #FF3060; text-shadow: 0 0 10px rgba(255,48,96,.4); }
.al-grade-stage .again{ position: absolute; transform: translate(-50%,-50%) scale(0); transform-origin: 50% 50%; z-index: 6; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.al-grade-stage .again.in{ transform: translate(-50%,-50%) scale(1); }
.al-grade-stage .ag{ display: flex; align-items: center; justify-content: center; gap: .35em; border: 0; cursor: pointer; font-family: var(--font-read);
  font-weight: 800; font-size: 46px; line-height: 1; padding: .45em .9em; border-radius: 999px; color: #fff; white-space: nowrap; position: relative; overflow: visible; }
.al-grade-stage .ag .ag-ic{ width: 1.15em; height: 1.15em; flex: none; }
body.al-grade-open .al-power{ opacity: 0 !important; visibility: hidden; }
body.al-grade-after .al-power{ transition: opacity .35s cubic-bezier(.65,0,.35,1); }
@keyframes alGradeAgPulse{ 0%,100%{ scale: 1; } 50%{ scale: 1.08; } }
@keyframes alGradeAgSpinCw{ to{ rotate: 360deg; } }
.al-grade-stage .ag.mix{ background: #1b1450; box-shadow: 0 0 0 7px #ff5ea8, 0 0 0 14px #ffc93a, 0 0 0 21px #3dbe7b, 0 20px 30px rgba(0,0,0,.45); animation: alGradeAgPulse 1.1s ease-in-out infinite; }
.al-grade-stage .ag.mix .ag-ic{ animation: alGradeAgSpinCw 2.4s linear infinite; }
