/* ==========================================================================
   ALPHA ESPORTS - ANGRY WOLF LOADING & MINDBLOWING HERO ANIMATIONS
   ========================================================================== */

/* ── PRELOADER CONTAINER ─────────────────────────────────────────────────── */
#wolf-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at 50% 45%, #180509 0%, #0a0204 45%, #040508 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.85, 0, 0.15, 1), transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

#wolf-preloader.loaded {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.08);
}

/* Cyber Hex Grid Background */
.cyber-hex-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 0, 60, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 0, 60, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

/* Atmospheric Glow Orbs */
.wolf-glow-red {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 60, 0.28) 0%, rgba(255, 0, 60, 0.05) 50%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

.wolf-glow-cyan {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 208, 255, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    top: 60%;
}

@keyframes glowPulse {
    0% { transform: scale(0.9) translate(-50%, -50%); opacity: 0.7; }
    100% { transform: scale(1.15) translate(-50%, -50%); opacity: 1; }
}

/* ── THE ANGRY WOLF MASCOT WRAPPER ────────────────────────────────────────── */
.wolf-avatar-stage {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .wolf-avatar-stage {
        width: 360px;
        height: 360px;
    }
}

/* Rotating Sci-Fi HUD Rings */
.hud-ring-outer {
    position: absolute;
    inset: -30px;
    border: 2px dashed rgba(255, 0, 60, 0.4);
    border-radius: 50%;
    animation: spinClockwise 25s linear infinite;
    pointer-events: none;
}

.hud-ring-middle {
    position: absolute;
    inset: -15px;
    border: 1.5px solid transparent;
    border-top: 2px solid #00d0ff;
    border-bottom: 2px solid #ff003c;
    border-radius: 50%;
    animation: spinCounterClockwise 12s linear infinite;
    pointer-events: none;
}

.hud-ring-inner {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.35);
    pointer-events: none;
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* The Wolf Emblem Mask */
.wolf-image-frame {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wolfBreath 3s ease-in-out infinite;
}

.wolf-image-frame img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 0 35px rgba(255, 0, 60, 0.7)) drop-shadow(0 0 50px rgba(0, 208, 255, 0.5));
    transition: transform 0.3s ease;
}

@keyframes wolfBreath {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 0, 60, 0.6)) drop-shadow(0 0 40px rgba(0, 208, 255, 0.4));
    }
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 60px rgba(255, 0, 60, 0.95)) drop-shadow(0 0 70px rgba(0, 208, 255, 0.8));
    }
}

/* Eye Lasers / Glowing Dual Eye Flares (Red Left, Blue Right) */
.wolf-eye-glow-left {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ff003c;
    border-radius: 50%;
    filter: blur(5px);
    box-shadow: 0 0 20px 6px #ff003c;
    top: 59%;
    left: 38%;
    animation: eyeFlicker 1.5s infinite alternate;
    pointer-events: none;
    z-index: 10;
}

.wolf-eye-glow-right {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #00d0ff;
    border-radius: 50%;
    filter: blur(5px);
    box-shadow: 0 0 20px 6px #00d0ff;
    top: 59%;
    right: 38%;
    animation: eyeFlicker 1.5s infinite alternate;
    pointer-events: none;
    z-index: 10;
}

@keyframes eyeFlicker {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    25% { opacity: 0.7; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); filter: blur(10px); }
    75% { opacity: 0.8; transform: scale(1.05); }
}

/* Lightning Spark Arcs */
.lightning-spark {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
}

.lightning-spark.active {
    animation: electricArc 0.35s ease-out;
}

@keyframes electricArc {
    0% { opacity: 0; }
    20% { opacity: 1; filter: drop-shadow(0 0 15px #00d0ff); }
    40% { opacity: 0.3; }
    60% { opacity: 0.9; }
    100% { opacity: 0; }
}

/* ── CLAW SLASH ANIMATION ───────────────────────────────────────────────── */
.claw-slash-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
    opacity: 0;
}

.claw-slash-overlay.slashed {
    animation: slashFlash 0.6s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.claw-line {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffffff, #ff003c, transparent);
    box-shadow: 0 0 20px #ff003c, 0 0 40px #ff003c;
    transform: rotate(-35deg) scaleX(0);
    transform-origin: center;
}

.claw-line-1 { top: 38%; left: 10%; width: 85%; }
.claw-line-2 { top: 48%; left: 12%; width: 80%; }
.claw-line-3 { top: 58%; left: 15%; width: 75%; }

.claw-slash-overlay.slashed .claw-line {
    animation: slashCut 0.5s ease-out forwards;
}

.claw-slash-overlay.slashed .claw-line-2 {
    animation-delay: 0.05s;
}

.claw-slash-overlay.slashed .claw-line-3 {
    animation-delay: 0.1s;
}

@keyframes slashFlash {
    0% { opacity: 1; }
    50% { background: rgba(255, 0, 60, 0.15); }
    100% { opacity: 0; }
}

@keyframes slashCut {
    0% { transform: rotate(-35deg) scaleX(0); opacity: 0; }
    40% { transform: rotate(-35deg) scaleX(1); opacity: 1; }
    100% { transform: rotate(-35deg) scaleX(1.2); opacity: 0; }
}

/* ── HUD PROGRESS & PERCENTAGE ───────────────────────────────────────────── */
.wolf-hud-progress-box {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 440px;
    position: relative;
    z-index: 20;
}

.wolf-hud-percent {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 0, 60, 0.8), 0 0 40px rgba(255, 0, 60, 0.4);
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.wolf-hud-percent span {
    font-size: 1.25rem;
    color: #ff003c;
}

.wolf-hud-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 0, 60, 0.3);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.wolf-hud-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff003c, #ff3366, #00d0ff);
    box-shadow: 0 0 15px #ff003c;
    border-radius: 999px;
    transition: width 0.08s linear;
    position: relative;
}

.wolf-hud-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 12px;
    background: #ffffff;
    filter: blur(2px);
    box-shadow: 0 0 10px #ffffff;
}

.wolf-hud-status-log {
    margin-top: 14px;
    font-family: 'Rajdhani', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a0aec0;
    text-align: center;
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wolf-hud-status-log .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff003c;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Skip Button */
.wolf-skip-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #a0aec0;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    z-index: 100;
}

.wolf-skip-btn:hover {
    background: rgba(255, 0, 60, 0.2);
    border-color: #ff003c;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.4);
    transform: translateY(-1px);
}

/* ── SHOCKWAVE DISMISS BURST ─────────────────────────────────────────────── */
.wolf-shockwave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    border: 4px solid #ff003c;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 60;
}

.wolf-shockwave-ring.blast {
    animation: blastRing 0.8s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes blastRing {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; border-width: 8px; }
    50% { opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(25); opacity: 0; border-width: 1px; }
}

/* ── HERO INTERACTIVE 3D WOLF BADGE & ROAR BUTTON ───────────────────────── */
.hero-wolf-interactive {
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.hero-wolf-card {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 24px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(255, 0, 60, 0.4), rgba(0, 208, 255, 0.2), rgba(255, 255, 255, 0.05));
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 60, 0.35);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@media (min-width: 640px) {
    .hero-wolf-card {
        width: 280px;
        height: 280px;
    }
}

.hero-wolf-card:hover {
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(255, 0, 60, 0.65),
        0 0 25px rgba(0, 208, 255, 0.4);
}

.hero-wolf-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    position: relative;
    background: radial-gradient(circle at center, #141824 0%, #080a10 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-wolf-card-inner img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px rgba(255, 0, 60, 0.5));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hero-wolf-card:hover .hero-wolf-card-inner img {
    transform: scale(1.08);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 45px rgba(255, 0, 60, 0.85)) drop-shadow(0 0 35px rgba(0, 208, 255, 0.7));
}

/* Floating Wolf Badge Tag */
.hero-wolf-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff003c, #cc0030);
    padding: 6px 18px;
    border-radius: 999px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.7);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

/* Screen Shake Effect */
body.screen-shaking {
    animation: screenShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes screenShake {
    10%, 90% { transform: translate3d(-1px, 1px, 0); }
    20%, 80% { transform: translate3d(2px, -2px, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 4px, 0); filter: hue-rotate(15deg); }
    40%, 60% { transform: translate3d(4px, -4px, 0); filter: hue-rotate(-15deg); }
}

/* Red Screen Flash for Roar */
#roar-flash {
    position: fixed;
    inset: 0;
    background: rgba(255, 0, 60, 0.35);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.1s ease;
}

#roar-flash.flash {
    animation: flashBurst 0.4s ease-out;
}

@keyframes flashBurst {
    0% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* Roaring Card Shockwave Animation */
.hero-wolf-card.roaring {
    animation: wolfRoarPulse 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes wolfRoarPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 25px rgba(255, 0, 60, 0.7)); }
    15% { transform: scale(1.18) rotate(-4deg); filter: drop-shadow(0 0 70px #ff003c) drop-shadow(0 0 50px #00d0ff); }
    30% { transform: scale(1.22) rotate(4deg); filter: drop-shadow(0 0 90px #ff003c) drop-shadow(0 0 70px #00d0ff); }
    50% { transform: scale(1.14) rotate(-2deg); filter: drop-shadow(0 0 60px #ff003c); }
    75% { transform: scale(1.06) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.hero-wolf-card.roaring .wolf-eye-glow-left,
.hero-wolf-card.roaring .wolf-eye-glow-right {
    transform: scale(2.5);
    filter: blur(1px) drop-shadow(0 0 15px #fff);
    opacity: 1 !important;
}

/* ── LIVE CYBER TICKER MARQUEE ────────────────────────────────────────────── */
.animate-marquee {
    display: inline-flex;
    min-width: 200%;
    animation: marqueeScroll 24s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
