* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 1920px;
    height: 1080px;
    overflow: hidden;
    background: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#animation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.95) 100%);
    opacity: 1;
    transition: opacity 0.6s ease;
}

#animation-container.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Light beams background */
.light-beams {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

.beam {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 200px;
    height: 100%;
    background: linear-gradient(to top, var(--beam-color, #ffffff) 0%, transparent 100%);
    transform-origin: bottom center;
    opacity: 0.6;
    filter: blur(20px);
    animation: rotateBeam 3s ease-in-out infinite;
}

.beam-1 {
    animation-delay: 0s;
    transform: translateX(-50%) rotate(-30deg);
}

.beam-2 {
    animation-delay: 0.6s;
    transform: translateX(-50%) rotate(-15deg);
}

.beam-3 {
    animation-delay: 1.2s;
    transform: translateX(-50%) rotate(0deg);
}

.beam-4 {
    animation-delay: 1.8s;
    transform: translateX(-50%) rotate(15deg);
}

.beam-5 {
    animation-delay: 2.4s;
    transform: translateX(-50%) rotate(30deg);
}

@keyframes rotateBeam {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) rotate(var(--start-rotation, 0deg)) scaleY(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) rotate(calc(var(--start-rotation, 0deg) + 10deg)) scaleY(1);
    }
}

/* 3D Weapon container */
#weapon-container {
    position: absolute;
    width: 800px;
    height: 600px;
    z-index: 10;
    opacity: 0;
    animation: weaponAppear 1s ease-out 0.5s forwards;
}

#weapon-canvas {
    width: 100%;
    height: 100%;
}

@keyframes weaponAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(100px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Information overlay */
#info-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.rarity-badge {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 40px;
    background: var(--rarity-color, #ffffff);
    border-radius: 30px;
    box-shadow: 0 0 30px var(--rarity-color, #ffffff);
    opacity: 0;
    animation: badgeSlideIn 0.6s ease-out 1s forwards;
}

.rarity-badge span {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes badgeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.skin-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    animation: nameExpand 0.8s ease-out 1.5s forwards;
}

.skin-name h1 {
    font-size: 72px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px var(--rarity-color, #ffffff),
                 0 0 40px var(--rarity-color, #ffffff),
                 0 4px 8px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

@keyframes nameExpand {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.user-info {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: userSlideIn 0.6s ease-out 2s forwards;
}

.user-info p {
    font-size: 24px;
    color: #aaa;
    margin-bottom: 10px;
}

.user-info h2 {
    font-size: 48px;
    font-weight: bold;
    color: var(--rarity-color, #ffffff);
    text-shadow: 0 0 20px var(--rarity-color, #ffffff),
                 0 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes userSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Particles */
#particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--rarity-color, #ffffff);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 3s ease-out forwards;
    box-shadow: 0 0 10px var(--rarity-color, #ffffff);
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-400px) scale(0.5);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Glow effect */
.glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px var(--rarity-color, #ffffff));
    }
    50% {
        filter: brightness(1.3) drop-shadow(0 0 25px var(--rarity-color, #ffffff));
    }
}
