.a-scr.on { animation: aScr .26s cubic-bezier(.3,1.4,.5,1); }
@keyframes aScr { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
.a-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.a-dim { background: linear-gradient(rgba(8,16,60,.35), rgba(8,16,60,.55)); position: absolute; inset: 0; }
.a-t { font-size: 20px; font-weight: 700; line-height: 1.35; }
.a-t.sm { font-size: 17px; }
.a-h { font-family: var(--title-font); font-weight: 900; color: var(--gold); font-size: 24px; }

/* title */
.scr-title .a-bg { background-image: url(../assets/title-bg.webp); animation: aDrift 24s ease-in-out infinite alternate; transform-origin: center; }
@keyframes aDrift { from { transform: scale(1.04) translate(0,0); } to { transform: scale(1.14) translate(-14px,-8px); } }
.scr-title .a-logo { position: absolute; left: 50%; top: 14px; max-width: 78%; max-height: 36%; margin-left: 0; transform: translateX(-50%); animation: aDrop .9s cubic-bezier(.3,1.6,.5,1) both, aFloat 4s ease-in-out .9s infinite, aShine 3.4s ease-in-out 1.2s infinite; filter: drop-shadow(0 6px 14px rgba(20,30,90,.6)); }
@keyframes aDrop { from { transform: translate(-50%,-300px); opacity: 0; } to { transform: translate(-50%,0); opacity: 1; } }
@keyframes aFloat { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-8px); } }
@keyframes aShine { 0%,100% { filter: drop-shadow(0 6px 14px rgba(20,30,90,.6)) brightness(1); } 50% { filter: drop-shadow(0 0 22px rgba(255,236,160,.9)) brightness(1.2); } }
.scr-title .a-start { position: absolute; left: 0; right: 0; bottom: 56px; width: fit-content; max-width: 90%; margin: 0 auto; text-align: center; font-family: var(--title-font); font-weight: 900; font-size: 32px; color: #fff; animation: aPulse 1.4s ease-in-out infinite; text-shadow: 0 3px 0 #1a1440, 0 0 12px #8fd8ff, 2px 2px 0 #1a1440, -2px -2px 0 #1a1440, 2px -2px 0 #1a1440, -2px 2px 0 #1a1440; }
@keyframes aPulse { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
.a-trophy { position: absolute; right: 100px; top: 14px; width: 66px; height: 66px; border-radius: 50%; background: rgba(20,30,90,.5); border: 3px solid rgba(255,215,122,.85); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 34px; }
.a-trophy.focus, .a-trophy:hover { filter: brightness(1.3) drop-shadow(0 0 8px #ffe9a8); transform: scale(1.08); }

/* intro */
.a-intro { position: absolute; inset: 0; background: #000 url(../assets/title-bg.webp) center / cover; z-index: 6; }
.a-intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-intro .a-sub { position: absolute; left: 10%; right: 10%; bottom: 26px; text-align: center; font-size: 22px; font-weight: 800; padding: 8px 14px; border-radius: 12px; background: rgba(8,12,40,.6); }
.a-intro .a-skip { position: absolute; right: 24px; bottom: 90px; min-height: 66px; min-width: 120px; font-size: 24px; }
body.intro-on .scr-title .a-start { visibility: hidden; }

/* hub */
.scr-hub .a-bg { background-image: url(../assets/hub-bg.webp); }
.a-lvbadge { position: absolute; left: 100px; top: 12px; width: 230px; height: 44px; border-radius: 22px; background: rgba(10,16,52,.78); border: 2px solid rgba(255,215,122,.7); display: flex; align-items: center; padding: 0 12px; gap: 10px; box-sizing: border-box; font-weight: 900; font-size: 20px; }
.a-expbar { flex: 1; height: 14px; border-radius: 7px; background: rgba(255,255,255,.2); overflow: hidden; }
.a-expbar > i { display: block; height: 100%; background: linear-gradient(90deg, #6fd0ff, #ffe27a); }
.a-chips { position: absolute; right: 100px; top: 12px; display: flex; gap: 8px; }
.a-chip { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px 0 4px; border-radius: 20px; background: rgba(10,16,52,.78); border: 2px solid rgba(255,215,122,.7); font-weight: 900; font-size: 19px; }
.a-oracle { position: absolute; left: 8px; bottom: 0; height: 470px; animation: aFloatY 5s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(180,230,255,.7)); pointer-events: none; }
@keyframes aFloatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.a-bubble { position: absolute; left: 250px; top: 110px; width: 280px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.93); color: #1a1440; font-size: 20px; font-weight: 800; line-height: 1.35; box-shadow: 0 4px 14px rgba(0,0,40,.4); animation: popIn .3s cubic-bezier(.3,1.6,.5,1); }
.a-bubble::before { content: ""; position: absolute; left: -12px; top: 30px; border: 10px solid transparent; border-right-color: rgba(255,255,255,.93); border-left-width: 0; }
.a-menu { position: absolute; right: 24px; top: 86px; width: 372px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a-menu .btn { height: 100px; flex-direction: column; gap: 2px; font-size: 22px; padding: 0 6px; min-width: 0; }
.a-menu .btn.wide { grid-column: span 2; justify-self: center; width: 60%; height: 84px; }
.a-menu .btn { box-sizing: border-box; padding-bottom: 14px; }
.a-reddot { position: absolute; right: 2px; top: -4px; width: 22px; height: 22px; border-radius: 50%; background: #ff3b4e; border: 3px solid #fff; animation: aPulse 1s infinite; }

/* story */
.scr-story .a-bg { background-image: url(../assets/hub-bg.webp); filter: brightness(.6) saturate(1.2); }
.scr-story .a-sky { position: absolute; inset: 0; background: linear-gradient(rgba(70,130,230,.55), rgba(190,230,255,.3)); }
.a-path { position: absolute; inset: 0; width: 960px; height: 540px; pointer-events: none; }
.a-node { position: absolute; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900; font-family: var(--title-font); cursor: pointer; border: 5px solid #fff; box-shadow: 0 0 18px rgba(255,255,255,.7), inset 0 0 14px rgba(255,255,255,.5); transition: transform .12s; }
.a-node.lock { filter: grayscale(.9) brightness(.7); box-shadow: none; }
.a-node.focus, .a-node:hover { transform: scale(1.12); filter: brightness(1.2) drop-shadow(0 0 10px #ffe9a8); }
.a-node.cur { animation: aPulse 1.2s infinite; }
.a-nlab { position: absolute; width: 150px; margin-left: -75px; text-align: center; font-size: 17px; font-weight: 800; pointer-events: none; }
.a-stars { color: #ffd34a; font-size: 22px; letter-spacing: 2px; }
.a-stars .off { color: rgba(255,255,255,.3); }

/* prebattle / endless */
.scr-prebattle .a-bg, .scr-endless .a-bg { background-image: url(../assets/hub-bg.webp); filter: brightness(.55); }
.a-p { position: absolute; box-sizing: border-box; padding: 0 6px; overflow: hidden; }
.a-p .a-h { margin-bottom: 4px; }
.a-ens { display: flex; flex-wrap: wrap; gap: 6px; }
.a-ens img { width: 54px; height: 54px; object-fit: contain; }
.a-rw { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-weight: 900; font-size: 20px; }
.a-rw span { display: inline-flex; align-items: center; gap: 4px; }
.a-team { position: absolute; display: flex; gap: 4px; }
.a-team .m { width: 78px; height: 96px; border-radius: 12px; background: rgba(10,16,52,.55); border: 2px solid rgba(255,215,122,.5); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.a-team .m img { max-width: 100%; max-height: 100%; object-fit: contain; }
.a-mile { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 20px; font-weight: 800; }
.a-mile img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.a-mile.got { color: #9dffb8; }

/* results */
.scr-results .a-bg { background: radial-gradient(circle at 50% 40%, rgba(120,190,255,.55), rgba(8,14,50,.92)); }
.a-rpanel { position: absolute; left: 150px; top: 36px; width: 660px; height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; animation: popIn .3s cubic-bezier(.3,1.6,.5,1); }
.a-banner { font-family: var(--title-font); font-weight: 900; font-size: 56px; color: var(--gold); animation: aSlam .5s cubic-bezier(.3,1.8,.5,1) both; text-shadow: 0 4px 0 #1a1440, 0 0 16px #fff4b0, 3px 3px 0 #1a1440, -3px -3px 0 #1a1440, 3px -3px 0 #1a1440, -3px 3px 0 #1a1440; }
.a-banner.lose { color: #b8c4ff; text-shadow: 0 4px 0 #1a1440, 3px 3px 0 #1a1440, -3px -3px 0 #1a1440, 3px -3px 0 #1a1440, -3px 3px 0 #1a1440; }
@keyframes aSlam { from { transform: scale(3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.a-rstars { display: flex; gap: 10px; font-size: 64px; line-height: 64px; }
.a-rstars b { color: rgba(255,255,255,.28); font-weight: 400; }
.a-rstars b.on { color: #ffd34a; text-shadow: 0 0 14px #fff1a0, 0 3px 0 #8a5a00; animation: aSlam .4s cubic-bezier(.3,1.8,.5,1) both; }
.a-rrow { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-weight: 900; font-size: 24px; }
.a-rrow span { display: inline-flex; align-items: center; gap: 5px; }
.a-rbtns { display: flex; gap: 12px; justify-content: center; margin-top: 6px; }
.a-tips { font-size: 19px; font-weight: 700; text-align: center; max-width: 520px; }
