.realm-hero{background-image:linear-gradient(90deg,rgba(20,15,57,.97) 0%,rgba(32,22,79,.87) 48%,rgba(26,18,73,.4) 100%),url('./assets/bg/academy_lobby_3d.jpg');background-size:cover;background-position:center 48%}.realm-hero::before{opacity:.32}.scene-character-img{object-fit:contain;line-height:normal}.scene-mage.scene-character-img{width:220px;height:270px;right:23%;bottom:10px;transform:none}.scene-monster.scene-character-img{width:145px;height:160px;right:-1%;bottom:25px;transform:none}.profile-mage img{width:115px;height:120px;object-fit:contain}.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;object-position:top}
.character-page{padding-bottom:40px}.character-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:4px 0 20px}.character-header h1{font-family:'Baloo 2';font-size:37px;color:#2c1e58;line-height:1.1;margin:4px 0}.character-header p{margin:0;color:#8b80a1;font-size:13px}.character-coin{background:#fff0c9;border:2px solid #f4d489;border-radius:13px;padding:9px 14px;color:#946123;font-weight:1000;white-space:nowrap}.character-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.85fr);gap:17px;align-items:start}.character-gallery,.character-detail{background:#fff;border:2px solid #e7dbf4;border-bottom:5px solid #d4c2e8;border-radius:20px;padding:17px}.character-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}.character-filters button{border:1px solid #e1d3ef;border-radius:9px;background:#faf7ff;color:#7a64a2;padding:7px 10px;font-size:11px;font-weight:900}.character-filters button.active{background:#7853c9;color:#fff;border-color:#7853c9}.character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-height:820px;overflow:auto;padding-right:4px}.character-tile{border:2px solid #ece4f5;border-bottom:4px solid #dacbed;border-radius:13px;background:linear-gradient(#fff,#faf6ff);padding:8px 5px 10px;text-align:center;min-width:0;transition:transform .15s,border .15s}.character-tile:hover{transform:translateY(-3px);border-color:#a87fe2}.character-tile.selected{border-color:#8a61d3;background:#f1e9ff}.character-tile-art{height:100px;border-radius:10px;background:radial-gradient(circle at 50% 95%,#e3d0fa,transparent 65%);display:grid;place-items:center}.character-tile-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 4px rgba(53,30,82,.18))}.character-tile strong{display:block;font-size:10px;line-height:1.2;margin-top:4px;color:#392a62;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.character-tile small{display:block;font-size:9px;color:#9483a8;font-weight:900;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.character-detail{position:sticky;top:15px}.detail-header{display:flex;justify-content:space-between;gap:6px;font-size:9px;font-weight:1000;color:#8c69bd;letter-spacing:1px}.detail-header span:last-child{color:#399b71}.character-spotlight{height:235px;position:relative;border-radius:16px;background:radial-gradient(circle at 50% 45%,#9971d9,#4e348e 70%,#302461 100%);overflow:hidden;display:grid;place-items:center;margin:10px 0}.spotlight-aura{position:absolute;width:195px;height:195px;border:2px solid rgba(255,225,154,.5);border-radius:50%;box-shadow:0 0 0 30px rgba(255,255,255,.06),0 0 0 60px rgba(255,255,255,.035);animation:spotlightTurn 12s linear infinite}.detail-character-img{position:relative;z-index:2;height:215px;max-width:92%;object-fit:contain;filter:drop-shadow(0 13px 6px rgba(21,12,47,.4));animation:arenaFloat 3s ease-in-out infinite}.spotlight-floor{position:absolute;bottom:6px;width:210px;height:28px;border-radius:50%;background:radial-gradient(ellipse,#d7afff,transparent 70%)}@keyframes spotlightTurn{to{transform:rotate(360deg)}}.character-detail h2{font-family:'Baloo 2';font-size:26px;line-height:1.1;color:#4b2c88;margin:9px 0 3px}.character-move-intro{font-size:11px;color:#8e7e9e;margin:0 0 12px}.character-moves{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.character-move{display:flex;gap:7px;align-items:center;border:1px solid #e8dff0;border-radius:10px;padding:7px;min-width:0}.character-move>span{width:29px;height:29px;display:grid;place-items:center;background:color-mix(in srgb,var(--move-color) 23%,white);border-radius:8px;font-size:19px;flex:none}.character-move>div{min-width:0}.character-move strong{display:block;font-size:10px;line-height:1.15;color:#46326f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.character-move small{display:block;font-size:8px;color:#9d91ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.character-equip{width:100%;margin-top:13px;border:0;border-radius:11px;background:linear-gradient(#ffd977,#ffad55);color:#52305f;font-weight:1000;padding:11px;box-shadow:0 4px 0 #bd7847}.character-equip:disabled{background:#e8e2ef;color:#9b90a6;box-shadow:none;cursor:default}.evolution-list{border-top:1px solid #e8dcf5;margin-top:15px;padding-top:12px;display:grid;gap:7px}.evolution-list>strong{font-size:11px;color:#7452b3}.evolution-list button{display:flex;gap:9px;align-items:center;border:1px solid #e2d4f0;border-radius:10px;background:#fdfbff;text-align:left;padding:5px;width:100%}.evolution-list button:disabled{opacity:.55;cursor:not-allowed}.evolution-list img{width:38px;height:38px;object-fit:contain}.evolution-list b{font-size:10px;color:#4d3773}.evolution-list small{display:block;color:#8f81a0;font-size:9px;font-weight:800}
.arena-character{height:230px;display:flex;align-items:end;justify-content:center}.arena-character img{height:225px;max-width:260px;width:100%;object-fit:contain;filter:drop-shadow(0 14px 6px rgba(14,8,41,.42))}.arena-character.enemy img{height:215px}.arena-character.fallen img{opacity:.5}.arena-battlefield .arena-vfx{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden}.arena-vfx span{position:absolute;display:block}.arena-vfx.projectile span:first-child,.arena-vfx.spirit_bomb span:first-child,.arena-vfx.volley span,.arena-vfx.conan_kick span:first-child,.arena-vfx.conan_kick_ult span:first-child,.arena-vfx.ben10_pulse span:first-child,.arena-vfx.tomjerry_spring span:first-child,.arena-vfx.tomjerry_spring_ult span:first-child{top:43%;left:28%;width:52px;height:52px;border-radius:50%;background:radial-gradient(circle,var(--attack-core) 0,var(--attack-outer) 47%,transparent 72%);box-shadow:0 0 35px var(--attack-outer),0 0 65px var(--attack-ring);animation:projectileFly .75s ease-in forwards}.arena-vfx.spirit_bomb span:first-child,.arena-vfx.mega span:first-child{width:100px;height:100px;top:33%;animation-duration:1s}.arena-vfx.volley span{width:35px;height:35px}.arena-vfx.volley span:nth-child(2){top:35%;animation-delay:.12s}.arena-vfx.volley span:nth-child(3){top:52%;animation-delay:.24s}.arena-vfx.beam span:first-child,.arena-vfx.spiral_beam span:first-child,.arena-vfx.wukong_staff span:first-child,.arena-vfx.wukong_cloud_ult span:first-child,.arena-vfx.ben10_diamondhead span:first-child,.arena-vfx.ben10_diamondhead_ult span:first-child{top:45%;left:30%;width:51%;height:27px;border-radius:50px;background:linear-gradient(90deg,transparent,var(--attack-outer),var(--attack-core),var(--attack-outer));box-shadow:0 0 25px var(--attack-outer),0 0 50px var(--attack-ring);transform-origin:left center;animation:beamFire .8s ease-out forwards}.arena-vfx.spiral_beam span:first-child{height:17px;border:5px dotted var(--attack-ring)}.arena-vfx.lightning_storm span{top:-5%;left:71%;width:13px;height:63%;background:var(--attack-core);clip-path:polygon(45% 0,100% 0,58% 45%,95% 45%,0 100%,29% 52%,0 52%);filter:drop-shadow(0 0 17px var(--attack-outer));animation:lightningStrike .7s ease-in both}.arena-vfx.lightning_storm span:nth-child(2){left:78%;animation-delay:.12s}.arena-vfx.lightning_storm span:nth-child(3){left:66%;animation-delay:.24s}.arena-vfx.heal span{top:18%;left:13%;width:170px;height:170px;border:6px solid var(--attack-core);border-radius:50%;box-shadow:0 0 25px var(--attack-outer),inset 0 0 24px var(--attack-ring);animation:healPulse .9s ease-out both}.arena-vfx.heal span:nth-child(2){animation-delay:.16s}.arena-shout{position:absolute;z-index:5;top:19%;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:90%;font-family:'Baloo 2';font-size:clamp(17px,2.1vw,29px);font-weight:1000;color:#fff6b8;text-shadow:0 3px 0 #7d3784,0 0 15px #fff;animation:shoutPop 1.2s ease-out both;pointer-events:none}@keyframes projectileFly{0%{opacity:0;transform:translate(0,0) scale(.2)}20%{opacity:1}80%{opacity:1}100%{opacity:0;transform:translate(450%,-15%) scale(1.35)}}@keyframes beamFire{0%{opacity:0;transform:scaleX(0)}25%{opacity:1}70%{opacity:1;transform:scaleX(1)}100%{opacity:0;transform:scaleX(1.1)}}@keyframes lightningStrike{0%,100%{opacity:0}20%,40%,65%{opacity:1}30%,55%{opacity:.2}}@keyframes healPulse{0%{opacity:0;transform:scale(.3)}45%{opacity:1}100%{opacity:0;transform:scale(1.5)}}@keyframes shoutPop{0%{opacity:0;scale:.3}25%{opacity:1;scale:1.1}70%{opacity:1}100%{opacity:0;scale:1}}
.arena-skill{border-color:color-mix(in srgb,var(--skill-color) 37%,white);border-bottom-color:var(--skill-color)}.arena-skill.ultimate{background:#fff7dc}.arena-skill.ultimate-ready{animation:ultimatePulse 1.5s ease-in-out infinite}@keyframes ultimatePulse{50%{box-shadow:0 0 20px var(--skill-color);transform:translateY(-2px)}}.arena-character-switch{display:flex;align-items:center;gap:8px;width:100%;padding:5px 8px;margin-top:12px;border:1px solid #d9c7ef;border-radius:11px;background:#f5efff;text-align:left}.arena-character-switch img{width:43px;height:43px;object-fit:contain}.arena-character-switch strong{display:block;font-size:11px;color:#4f3685}.arena-character-switch small{font-size:9px;color:#8573a6}.arena-character-switch:hover{background:#e9dafa}
@media(max-width:1000px){.character-layout{grid-template-columns:1fr}.character-detail{position:static}.character-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:none}}
@media(max-width:800px){.scene-mage.scene-character-img{width:170px;height:205px}.scene-monster.scene-character-img{width:115px;height:130px}.arena-character{height:180px}.arena-character img{height:175px}.arena-character.enemy img{height:165px}.character-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.scene-mage.scene-character-img{width:128px;height:160px;right:44%;bottom:0}.scene-monster.scene-character-img{width:100px;height:115px;right:11%;bottom:12px}.character-header h1{font-size:28px}.character-header p{font-size:11px}.character-coin{font-size:11px}.character-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.character-gallery,.character-detail{padding:10px}.character-tile-art{height:78px}.character-tile strong{font-size:9px}.character-tile small{font-size:8px}.character-spotlight{height:210px}.detail-character-img{height:190px}.arena-character{height:125px}.arena-character img{height:120px}.arena-character.enemy img{height:115px}.arena-shout{top:10%;font-size:14px}.arena-vfx.heal span{width:105px;height:105px}.arena-vfx.projectile span:first-child,.arena-vfx.spirit_bomb span:first-child,.arena-vfx.volley span{width:31px;height:31px}.arena-vfx.beam span:first-child,.arena-vfx.spiral_beam span:first-child{height:14px}}
@media(prefers-reduced-motion:reduce){.detail-character-img,.spotlight-aura,.arena-vfx span,.arena-shout,.arena-skill.ultimate-ready{animation:none!important}}

/* Keep large transparent character renders inside their own gallery card. */
.character-grid{grid-auto-rows:150px;align-items:stretch}
.character-tile{display:flex;flex-direction:column;align-items:stretch;width:100%;height:100%;overflow:hidden;isolation:isolate}
.character-tile-art{display:flex;align-items:center;justify-content:center;flex:0 0 108px;width:100%;min-width:0;min-height:0;overflow:hidden;contain:paint}
.character-tile-art img{display:block;flex:none;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center center}
.character-tile strong,.character-tile small{flex:none;width:100%;min-width:0}
@media(max-width:600px){.character-grid{grid-auto-rows:128px}.character-tile-art{flex-basis:87px}}

/* Evolution paths are visible even before a character is unlocked. */
.character-detail{max-height:calc(100vh - 30px);overflow-y:auto;scrollbar-color:#d8c4ed transparent}
.character-spotlight{height:205px}
.detail-character-img{height:185px}
.evolution-road{margin:12px 0 2px}
.evolution-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px;color:#7452b3}
.evolution-heading strong{font-size:12px}
.evolution-heading span{font-size:9px;color:#9884b2;font-weight:800}
.evolution-forms{display:grid;gap:5px}
.evolution-form{display:flex;align-items:center;gap:8px;width:100%;min-width:0;min-height:52px;padding:4px 8px;border:1px solid #e4d9f2;border-radius:11px;background:#fdfbff;text-align:left}
.evolution-form:hover{background:#f6efff;border-color:#b995e3}
.evolution-form.active{background:#eee4ff;border:2px solid #865cc9}
.evolution-step{width:22px;height:22px;flex:none;border-radius:50%;background:#e4d6f7;color:#7048ad;display:grid;place-items:center;font-size:10px;font-weight:1000}
.evolution-form.active .evolution-step{background:#7951c7;color:#fff}
.evolution-form img{display:block;width:43px;height:43px;flex:none;object-fit:contain}
.evolution-form-copy{display:block;min-width:0;flex:1}
.evolution-form-copy b,.evolution-form-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.evolution-form-copy b{font-size:10px;color:#4f3678}
.evolution-form-copy small{font-size:9px;color:#9b83ad;font-weight:800}
.evolution-form-arrow{color:#9e7acc;font-size:23px;line-height:1}
.evolution-empty{margin:13px 0;padding:10px;border:1px dashed #ddcdef;border-radius:10px;color:#8f7ba2;font-size:10px}
.evolution-perks{padding:8px 9px;border-radius:9px;background:#f2ebff;color:#6d4ca9;font-size:10px;font-weight:900;line-height:1.4}
.evolution-action-note{margin:7px 2px 10px;color:#8f7ba2;font-size:10px;line-height:1.35}
.character-move-heading{margin:18px 0 8px;padding-top:12px;border-top:1px solid #e9dff2;color:#7452b3;font-size:11px;font-weight:1000}
@media(max-width:1000px){.character-detail{max-height:none;overflow:visible}}
@media(max-width:600px){.character-spotlight{height:190px}.detail-character-img{height:170px}.evolution-form{min-height:49px}}

/* An interactive 2.5D stage made from the supplied character art. */
.character-spotlight{cursor:grab;touch-action:pan-y;user-select:none}
.character-spotlight:active{cursor:grabbing}
.character-spotlight:focus-visible{outline:3px solid #ffc86a;outline-offset:3px}
.character-stage-performer{position:relative;z-index:2;width:min(60%,230px);height:185px;display:grid;place-items:center;transform:translateX(var(--stage-x,0px));transition:transform .32s cubic-bezier(.2,.8,.2,1);animation:stageRoam 6s ease-in-out infinite;will-change:transform;pointer-events:none}
.character-stage-performer .detail-character-img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;animation:characterIdle 2.8s ease-in-out infinite;transform-origin:center 85%}
.character-spotlight .spotlight-floor{transform:translateX(var(--stage-x,0px));transition:transform .32s cubic-bezier(.2,.8,.2,1);animation:stageShadow 2.8s ease-in-out infinite}
.stage-hint{position:absolute;z-index:3;bottom:7px;left:50%;transform:translateX(-50%);padding:2px 7px;border-radius:99px;background:rgba(31,19,70,.62);color:#fff5cf;font-size:9px;white-space:nowrap;pointer-events:none}
.stage-spell{position:absolute;z-index:4;left:52%;top:24%;max-width:46%;color:#fff;text-align:center;font-family:'Baloo 2';font-size:13px;font-weight:1000;text-shadow:0 2px 8px #2b185c;opacity:0;pointer-events:none}
.character-spotlight.casting .stage-spell{animation:stageSpell .9s ease-out both}
.character-spotlight.casting .stage-spell::after{content:"";display:block;width:54px;height:54px;margin:auto;border-radius:50%;background:radial-gradient(circle,#fff 0,var(--stage-spell-color) 38%,transparent 70%);box-shadow:0 0 22px var(--stage-spell-color);animation:stageOrb .8s ease-out both}
.character-spotlight.walking .detail-character-img{animation:characterWalk .39s steps(2,end) both}
.character-spotlight.walking .character-stage-performer{animation:none}
.character-spotlight.jumping .detail-character-img{animation:characterJump .75s ease-in-out both}
.character-spotlight.casting .detail-character-img{animation:characterCast .9s ease-out both}
.character-motion-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:-2px 0 10px}
.character-motion-controls button{border:1px solid #d7c4ef;border-bottom:3px solid #af91dc;border-radius:9px;background:#f3eaff;color:#6946aa;padding:6px 3px;font-size:10px;font-weight:1000}
.character-motion-controls button:hover,.character-motion-controls button:focus-visible{background:#e5d3ff}
.character-motion-controls button:active{transform:translateY(2px);border-bottom-width:1px}
.character-move{width:100%;background:#fff;text-align:left;cursor:pointer}
.character-move:hover,.character-move:focus-visible{background:#f4edff;border-color:#bfa3e8}
.character-tile.selected img{animation:characterCardIdle 3.4s ease-in-out infinite}
@keyframes characterIdle{0%,100%{transform:translateY(0) rotate(-1.5deg)}50%{transform:translateY(-8px) rotate(1.5deg)}}
@keyframes stageRoam{0%,100%{translate:-12px 0}50%{translate:12px 0}}
@keyframes characterCardIdle{50%{transform:translateY(-5px) rotate(2deg)}}
@keyframes stageShadow{50%{opacity:.55;scale:.84}}
@keyframes characterWalk{0%,100%{transform:translateY(0) rotate(-5deg)}50%{transform:translateY(-9px) rotate(5deg)}}
@keyframes characterJump{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-62px) scale(1.07)}65%{transform:translateY(-49px) scale(1.03)}}
@keyframes characterCast{0%,100%{transform:translateX(0) rotate(0) scale(1)}28%{transform:translateX(-16px) rotate(-8deg) scale(.95)}50%{transform:translateX(28px) rotate(6deg) scale(1.12)}}
@keyframes stageSpell{0%,100%{opacity:0;transform:translateY(15px) scale(.6)}25%,70%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes stageOrb{0%{opacity:0;transform:translateX(-70px) scale(.2)}50%{opacity:1;transform:translateX(0) scale(1)}100%{opacity:0;transform:translateX(65px) scale(1.5)}}
.arena-character.casting img{animation:arenaPoseStrike .85s ease-out both}
@keyframes arenaPoseStrike{0%{transform:translateX(0) scale(1)}35%{transform:translateX(18px) scale(1.08)}100%{transform:translateX(0) scale(1)}}
@media(max-width:600px){.character-stage-performer{height:170px}.stage-hint{font-size:8px}.character-motion-controls button{font-size:9px}}
@media(prefers-reduced-motion:reduce){.character-stage-performer,.character-stage-performer .detail-character-img,.character-spotlight .spotlight-floor,.stage-spell,.stage-spell::after,.character-tile.selected img,.arena-character.casting img{animation:none!important;transition:none!important}}
