/* --- HERO VISUAL OVERHAUL v4.0: DETAILED RPG STYLE --- */

#hero-visual {
    width: 140px !important;
    height: 220px !important;
    position: relative !important;
    margin: 60px auto 10px auto !important;
    z-index: 10;
    transition: transform 0.2s ease-out;
    animation: heroIdle 3s ease-in-out infinite;
}

@keyframes heroIdle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Ground Shadow */
#hero-visual::after {
    content: '';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    width: 90px;
    height: 22px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    animation: shadowPulse 3s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.3; }
    50% { transform: translateX(-50%) scaleX(0.95); opacity: 0.2; }
}

/* --- HERO CAPE --- */
.hero-cape {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 90px;
    background: linear-gradient(to bottom, #c0392b, #922b21);
    border-radius: 10px 10px 20px 20px;
    z-index: 13; /* Behind body (14) */
    transform-origin: top center;
    animation: capeFlutter 3s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes capeFlutter {
    0%, 100% { transform: translateX(-50%) rotate(0deg) scaleX(1); }
    50% { transform: translateX(-50%) rotate(2deg) scaleX(1.05) skewX(2deg); }
}

/* --- HEAD & FACE --- */

.hero-head {
    width: 74px;
    height: 72px;
    background: radial-gradient(circle at 35% 35%, #fde4c8, #f3d0b1);
    border-radius: 30px; /* Rounder for a youthful look */
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 30;
    box-shadow: inset -2px -2px 8px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.1);
    animation: headBob 3s ease-in-out infinite;
}

/* Youthful Blush */
.hero-head::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 8px;
    width: 12px;
    height: 6px;
    background: rgba(255, 182, 193, 0.6); /* Soft pink */
    border-radius: 50%;
    box-shadow: 46px 0 0 rgba(255, 182, 193, 0.6);
    z-index: 21;
}

.hero-face {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Larger, rounder eyes for a boyish look */
.hero-eye {
    position: absolute;
    top: 36px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    z-index: 22;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: animeBlink 4s infinite;
}

.hero-eye.left { left: 12px; }
.hero-eye.right { right: 12px; }

/* Pupils */
.hero-eye::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #2c3e50;
    border-radius: 50%;
}

/* Thinner, softer eyebrows */
.hero-eye::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #8d6e63;
    z-index: 23;
}
.hero-eye.left::before { transform: rotate(5deg); }
.hero-eye.right::before { transform: rotate(-5deg); }


@keyframes animeBlink {
    0%, 48%, 52%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

/* Mouth */
.hero-mouth {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 4px;
    background: #e57373;
    border-radius: 4px;
    z-index: 21;
    transition: all 0.2s;
    opacity: 0.8;
}

.hero-attack .hero-mouth {
    height: 8px;
    border-radius: 50% 50% 20% 20%;
    background: #d32f2f;
    bottom: 10px;
}

/* --- HAIR STYLES (SUPER SAIYAN) --- */
.hero-hair {
    position: absolute;
    top: -55px; /* Adjusted to sit better on the head */
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 115px;
    background: #f1c40f; /* Iconic Golden Yellow */
    z-index: 31; /* Above head (30) to cover forehead */
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.1);
    /* Super Saiyan clip-path with shorter fringe spikes to keep eyes visible */
    clip-path: polygon(
        50% 0%, 65% 20%, 85% 5%, 80% 35%, 100% 25%, 
        90% 50%, 100% 75%, 80% 65%, 
        70% 65%, 60% 55%, 50% 70%, 40% 55%, 30% 65%, /* Shorter fringe spikes */
        20% 65%, 0% 75%, 10% 50%, 0% 25%, 
        20% 35%, 15% 5%, 35% 20%
    );
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: hairSway 3s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes hairSway {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(2deg); }
}

/* --- BODY & ARMOR --- */

.hero-body {
    width: 54px;
    height: 52px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 12px;
    position: absolute;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    z-index: 14;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 5px 10px rgba(0,0,0,0.2);
    border: 1px solid #1a5276;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bodyBreathe 3s ease-in-out infinite;
}

@keyframes bodyBreathe {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.02); }
}

.hero-chest-plate {
    width: 40px;
    height: 30px;
    background: linear-gradient(to bottom, #ecf0f1, #bdc3c7);
    border-radius: 6px 6px 15px 15px;
    margin-top: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid #95a5a6;
}

/* Chest Emblem */
.hero-chest-plate::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #f1c40f;
    border-radius: 50%;
    box-shadow: inset 0 0 4px rgba(255,255,255,0.8);
    border: 1px solid #d4ac0d;
}

.hero-belt {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 12px;
    background: #3e2723;
    border-radius: 0; /* Flat belt to avoid rounded crotch shape */
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #5d4037;
}

.hero-belt::after { /* Buckle - Horizontal Rectangle */
    content: '';
    width: 22px;
    height: 10px;
    background: linear-gradient(to bottom, #f1c40f, #d4ac0d);
    border: 1px solid #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* --- LIMBS & SHOULDERS --- */

.hero-arms {
    width: 16px;
    height: 44px;
    background: #f3d0b1; /* Skin tone */
    position: absolute;
    top: 66px;
    border-radius: 8px;
    z-index: 16;
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.1);
    animation: armSway 3s ease-in-out infinite;
}

/* Armor / Sleeves on arms */
.hero-arms::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #2980b9;
    border-radius: 8px 8px 0 0;
}

.hero-arm-left { 
    left: 32px; 
    transform-origin: top center; 
}

.hero-arm-right { 
    right: 32px; 
    transform-origin: top center; 
}

@keyframes armSway {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(10deg); }
}
.hero-arm-right {
    animation-name: armSwayRight;
}
@keyframes armSwayRight {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(-10deg); }
}

.hero-shoulder-pad {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 18px;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border-radius: 6px 6px 2px 2px;
    z-index: 18;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 2px 4px rgba(255,255,255,0.4);
    border: 1px solid #555;
}

/* --- LEGS & BOOTS --- */

.hero-legs {
    width: 54px; /* Matches body */
    height: 40px;
    position: absolute;
    left: 50%;
    top: 108px;
    transform: translateX(-50%);
    z-index: 15;
}

.hero-legs::before, .hero-legs::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 42px;
    background: #2c3e50; /* Pants */
    top: 0;
    /* Removed inner shadows that were highlighting the gap */
}

/* Make legs meet in the middle to remove the gap */
.hero-legs::before { 
    left: 7px; 
    border-radius: 6px 0 6px 6px; 
    background: linear-gradient(to bottom, #2c3e50 50%, #5d4037 50%, #3e2723 100%);
}
.hero-legs::after { 
    right: 7px; 
    border-radius: 0 6px 6px 6px; 
    background: linear-gradient(to bottom, #2c3e50 50%, #5d4037 50%, #3e2723 100%);
}


/* --- WEAPONS & SHIELD --- */

.hero-sword {
    width: 16px;
    height: 85px;
    background: linear-gradient(to right, #ecf0f1 50%, #bdc3c7 50%);
    position: absolute;
    top: 25px;
    left: 0;
    z-index: 5;
    border-radius: 2px 2px 10px 10px;
    transform-origin: top center;
    transform: rotate(-100deg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
/* Crossguard */
.hero-sword::before { 
    content: '';
    position: absolute;
    top: 0;
    left: -16px; 
    width: 48px; 
    height: 8px;
    background: linear-gradient(to bottom, #f1c40f, #b7950b);
    border-radius: 2px;
    border: 1px solid #7d6608;
}
/* Pommel */
.hero-sword::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: #f1c40f;
    border-radius: 50%;
    z-index: -1;
    border: 1px solid #b7950b;
}

.hero-shield {
    width: 44px;
    height: 50px;
    background: linear-gradient(135deg, #c0392b, #8e44ad);
    border: 3px solid #ecf0f1;
    border-radius: 0 0 25px 25px;
    position: absolute;
    top: 75px;
    left: 10px;
    z-index: 17;
    transform: rotate(-10deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    overflow: hidden;
}
/* Shield Details */
.hero-shield::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 0 0 20px 20px;
}

/* --- DYNAMIC LIGHTING & ENERGY FLOW --- */

/* Weapon Shine Effect */
.hero-sword::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0) 40%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 60%);
    transform: rotate(45deg);
    animation: weaponShine 4s infinite;
    pointer-events: none;
}

@keyframes weaponShine {
    0%, 80% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Armor Sheen */
.hero-chest-plate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: armorSheen 5s infinite linear;
    border-radius: inherit;
    pointer-events: none;
}

@keyframes armorSheen {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Energy Flow for High Stages (Stage 3+) */
.hero-stage-3 .hero-body, 
.hero-stage-4 .hero-body {
    overflow: hidden;
}

.hero-stage-3 .hero-body::after, 
.hero-stage-4 .hero-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.2), transparent 60%);
    animation: energyPulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes energyPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* --- SLASH VFX --- */
.slash-effect {
    position: absolute;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
}

.slash-basic {
    width: 100px;
    height: 100px;
    border: 4px solid #fff;
    border-radius: 50%;
    border-color: transparent transparent #fff transparent;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px #fff, 0 0 20px cyan;
    animation: slashBasic 0.2s linear forwards;
}

@keyframes slashBasic {
    0% { transform: scale(0.5) rotate(-45deg); opacity: 1; }
    100% { transform: scale(1.5) rotate(45deg); opacity: 0; }
}

.slash-heavy {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, transparent 30%, rgba(255,255,255,0.8) 40%, transparent 70%);
    transform: rotate(0deg);
    filter: drop-shadow(0 0 10px gold);
    animation: slashHeavy 0.3s ease-out forwards;
}

@keyframes slashHeavy {
    0% { transform: scale(0.2) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 0.8; }
    100% { transform: scale(2.0) rotate(360deg); opacity: 0; }
}

.slash-pierce {
    width: 150px;
    height: 20px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    box-shadow: 0 0 10px #fff, 0 0 20px #ff00ff;
    transform: rotate(-10deg);
    animation: slashPierce 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slashPierce {
    0% { transform: translateX(-50px) scaleX(0.2) rotate(-10deg); opacity: 0; }
    50% { transform: translateX(0px) scaleX(1.5) rotate(-10deg); opacity: 1; }
    100% { transform: translateX(50px) scaleX(1) rotate(-10deg); opacity: 0; }
}

/* --- COMBAT STANCE --- */
#hero-visual.hero-combat-stance {
    animation: heroCombatIdle 1s ease-in-out infinite alternate !important;
}

@keyframes heroCombatIdle {
    0% { transform: translateY(2px) rotate(2deg); }
    100% { transform: translateY(4px) rotate(2deg); }
}

#hero-visual.hero-combat-stance .hero-body {
    transform: rotate(5deg) !important;
}

#hero-visual.hero-combat-stance .hero-arm-right {
    transform: rotate(-45deg) !important; /* Sword raised */
}

#hero-visual.hero-combat-stance .hero-arm-left {
    transform: rotate(30deg) !important; /* Shield raised */
}

#hero-visual.hero-combat-stance .hero-legs::before {
    transform: skewX(10deg) translateX(-2px);
}
#hero-visual.hero-combat-stance .hero-legs::after {
    transform: skewX(-10deg) translateX(2px);
}

#hero-visual.hero-combat-stance .hero-mouth {
    height: 3px;
    width: 14px;
    border-radius: 2px;
    background: #c0392b; /* Gritted teeth/Angry */
}

#hero-visual.hero-combat-stance .hero-eye::before {
    transform: rotate(15deg); /* Angry eyebrows */
}
#hero-visual.hero-combat-stance .hero-eye.right::before {
    transform: rotate(-15deg);
}

/* --- REFINED AURA (Body Glow instead of Circle) --- */
.hero-stage-3 .hero-body {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    animation: bodyGlow 2s infinite alternate;
}

.hero-stage-3 #hero-visual::before { 
    display: none; /* Remove old circle aura */
}

@keyframes bodyGlow {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); filter: brightness(1); }
    to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); filter: brightness(1.1); }
}

/* --- ANIMATIONS --- */

/* Attack Variations - Increased specificity to override ID-based idle animation */
#hero-visual.hero-attack { animation: heroAttackBasic 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important; transition: none; }
@keyframes heroAttackBasic {
    0% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-15px) rotate(-15deg); } /* Windup */
    50% { transform: translateX(60px) rotate(10deg); } /* Strike */
    80% { transform: translateX(20px) rotate(5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

#hero-visual.hero-attack-thrust { animation: heroAttackThrust 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important; transition: none; }
@keyframes heroAttackThrust {
    0% { transform: translateX(0) scaleX(1); }
    20% { transform: translateX(-10px) scaleX(0.9) scaleY(1.1); }
    50% { transform: translateX(80px) scaleX(1.3) scaleY(0.8); }
    100% { transform: translateX(0) scaleX(1); }
}

#hero-visual.hero-attack-overhead { animation: heroAttackOverhead 0.5s ease-in-out !important; transition: none; }
@keyframes heroAttackOverhead {
    0% { transform: translateY(0); }
    30% { transform: translateY(-30px) rotate(-30deg); } /* Jump up */
    60% { transform: translateY(10px) translateX(40px) rotate(45deg); } /* Smash down */
    100% { transform: translateY(0); }
}

#hero-visual.hero-attack-spin { animation: heroAttackSpin 0.5s linear !important; transition: none; }
@keyframes heroAttackSpin {
    0% { transform: rotate(0) translateX(0); }
    30% { transform: rotate(-60deg) translateX(-10px); }
    100% { transform: rotate(360deg) translateX(10px); }
}

#hero-visual.hero-combo { animation: heroCombo 0.6s ease-out !important; transition: none; }
@keyframes heroCombo {
    0% { transform: translateX(0); }
    20% { transform: translateX(30px) rotate(10deg); } /* Hit 1 */
    40% { transform: translateX(10px) rotate(-5deg); }
    60% { transform: translateX(40px) rotate(15deg); } /* Hit 2 */
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

/* Critical Hit */
#hero-visual.hero-critical { animation: heroCritical 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important; transition: none; }
@keyframes heroCritical {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(-15deg) translateY(-10px); filter: brightness(1.5); }
    50% { transform: scale(1.5) rotate(10deg) translateX(40px); filter: brightness(2) drop-shadow(0 0 15px gold); }
    100% { transform: scale(1); }
}

/* Defensive & Reaction Animations */
#hero-visual.hero-defend { animation: heroDefend 0.4s ease-out !important; transition: none; }
@keyframes heroDefend {
    0% { transform: translateX(0) scale(1); }
    20% { transform: translateX(-10px) scale(0.95); filter: brightness(1.5); } /* Block impact */
    50% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

#hero-visual.hero-hit { animation: heroHit 0.4s ease-in-out !important; transition: none; }
@keyframes heroHit {
    0% { transform: translateX(0) rotate(0deg); filter: none; }
    20% { transform: translateX(-20px) rotate(-10deg); filter: sepia(1) hue-rotate(-50deg) saturate(3); } /* Red flash */
    40% { transform: translateX(-15px) rotate(-5deg); }
    60% { transform: translateX(-5px) rotate(-2deg); }
    100% { transform: translateX(0) rotate(0deg); filter: none; }
}

#hero-visual.hero-dodge { animation: heroDodge 0.5s ease-out !important; transition: none; }
@keyframes heroDodge {
    0% { transform: translateX(0); opacity: 1; }
    20% { transform: translateX(-40px) skewX(-20deg); opacity: 0.7; } /* Dash back */
    50% { transform: translateX(-30px); opacity: 0.8; }
    100% { transform: translateX(0); opacity: 1; }
}

#hero-visual.hero-cast { animation: heroCast 0.8s ease-in-out !important; transition: none; }
@keyframes heroCast {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-20px) scale(1.1); filter: brightness(1.3) drop-shadow(0 0 10px cyan); } /* Float up */
    50% { transform: translateY(-15px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

/* --- SWORD & ARM ANIMATIONS (REMOVED - Use Direct Animation Classes Below) --- */

@keyframes armSlash {
    0% { transform: rotate(-10deg); }
    30% { transform: rotate(-45deg); } /* Windup */
    60% { transform: rotate(45deg); } /* Swing */
    100% { transform: rotate(-10deg); }
}
@keyframes swordSlash {
    0% { transform: rotate(-100deg); }
    30% { transform: rotate(-130deg); } /* Windup */
    60% { transform: rotate(0deg); } /* Slash through */
    100% { transform: rotate(-100deg); }
}

@keyframes armThrust {
    0% { transform: rotate(-10deg) translateX(0); }
    30% { transform: rotate(0deg) translateX(-10px); } /* Pull back */
    50% { transform: rotate(90deg) translateX(20px); } /* Punch forward */
    100% { transform: rotate(-10deg) translateX(0); }
}
@keyframes swordThrust {
    0% { transform: rotate(-100deg); }
    30% { transform: rotate(-90deg); }
    50% { transform: rotate(0deg) translateY(10px); } /* Point forward */
    100% { transform: rotate(-100deg); }
}

@keyframes armOverhead {
    0% { transform: rotate(-10deg); }
    40% { transform: rotate(-160deg); } /* Raise high */
    60% { transform: rotate(60deg); } /* Smash down */
    100% { transform: rotate(-10deg); }
}
@keyframes swordOverhead {
    0% { transform: rotate(-100deg); }
    40% { transform: rotate(-45deg); }
    60% { transform: rotate(45deg); }
    100% { transform: rotate(-100deg); }
}

@keyframes armSpin {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(-10deg); } /* Arm stays relative to body spin */
}

/* --- DIRECT ANIMATION CLASSES (JS CONTROLLED) --- */

.animate-arm-slash { animation: armSlash 0.3s ease-out !important; transition: none; }
.animate-sword-slash { animation: swordSlash 0.3s ease-out !important; transition: none; }

.animate-arm-thrust { animation: armThrust 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important; transition: none; }
.animate-sword-thrust { animation: swordThrust 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important; transition: none; }

.animate-arm-overhead { animation: armOverhead 0.5s ease-in-out !important; transition: none; }
.animate-sword-overhead { animation: swordOverhead 0.5s ease-in-out !important; transition: none; }

.animate-arm-spin { animation: armSpin 0.5s linear !important; transition: none; }
.animate-sword-spin { transform: rotate(0deg) !important; transition: none; }

/* --- EVOLUTION STAGES (SUPER SAIYAN) --- */

/* Stage 2: Powered Up */
.hero-stage-2 .hero-hair {
    background: #ffd700; /* Brighter gold */
    transform: translateX(-50%) scale(1.1);
    filter: drop-shadow(0 0 5px #ffd700);
}
.hero-stage-2 .hero-shoulder-pad {
    background: linear-gradient(135deg, #f1c40f, #d4ac0d); 
}

/* Stage 3: Super Saiyan 2 (Elite) */
.hero-stage-3 .hero-hair {
    background: #ffeb3b;
    filter: drop-shadow(0 0 12px #ffeb3b);
    transform: translateX(-50%) scale(1.2) translateY(-5px);
}
.hero-stage-3 .hero-chest-plate {
    background: linear-gradient(to bottom, #f1c40f, #d4ac0d); 
}

/* Stage 4: Super Saiyan Blue/Ultra (Legendary) */
.hero-stage-4 .hero-hair {
    background: #00d2ff; /* Super Saiyan Blue style */
    filter: drop-shadow(0 0 20px #00d2ff);
    transform: translateX(-50%) scale(1.3) translateY(-10px);
}
.hero-stage-4 #hero-visual {
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.6));
}
.hero-stage-4 .hero-chest-plate, .hero-stage-4 .hero-shoulder-pad {
    background: linear-gradient(135deg, #2980b9, #3498db); 
    border-color: #00d2ff;
}

/* --- EQUIPMENT VISUALS --- */

/* Armor Variations */
.hero-body.armor-cloth {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); /* Default Blue Cloth */
}
.hero-body.armor-cloth .hero-chest-plate {
    background: linear-gradient(to bottom, #ecf0f1, #dfe6e9);
    border-color: #bdc3c7;
}

.hero-body.armor-leather {
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%); /* Brown Leather */
    border-color: #5d4037;
}
.hero-body.armor-leather .hero-chest-plate {
    background: linear-gradient(to bottom, #a1887f, #8d6e63);
    border-color: #5d4037;
}
.hero-body.armor-leather .hero-belt {
    background: #3e2723;
}

.hero-body.armor-chain {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); /* Grey Chainmail */
    border-color: #555;
}
.hero-body.armor-chain .hero-chest-plate {
    background: linear-gradient(to bottom, #b0bec5, #90a4ae);
    border-color: #78909c;
}

/* Hide helmet class if not needed, or style it to overlay head */
.hero-helmet { display: none; } /* Currently hiding helmet to show new face */
