/* ═══════════════════════════════════════════════════════════════════════════════
   LOOT WARS - CSS-ONLY REVEAL ANIMATIONS
   Fallback spectacular effects when video files aren't available
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Add this to loot-wars-reveal.js styles or as separate file */

/* ═══════════════════════════════════════════════════════════
   ANIMATED LOOTBOX (No Video Required)
   ═══════════════════════════════════════════════════════════ */

.lw-reveal-box.css-animation {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lw-animated-chest {
    width: 200px;
    height: 160px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Chest Base */
.lw-chest-base {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, #4a3728 0%, #2d1f15 100%);
    border-radius: 8px;
    border: 3px solid #6b4423;
    box-shadow: 
        inset 0 -10px 20px rgba(0,0,0,0.5),
        0 10px 30px rgba(0,0,0,0.8);
}

/* Chest Lid */
.lw-chest-lid {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #5a4732 0%, #3d2a1a 100%);
    border-radius: 8px 8px 0 0;
    border: 3px solid #7a5533;
    transform-origin: bottom center;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

/* Lid details */
.lw-chest-lid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #d4af37 0%, #aa8a2e 100%);
    border-radius: 4px;
    border: 2px solid #8b7355;
}

/* Open state */
.lw-animated-chest.opening .lw-chest-lid {
    transform: rotateX(-110deg);
}

/* ═══════════════════════════════════════════════════════════
   GLOW EFFECTS BY RARITY
   ═══════════════════════════════════════════════════════════ */

/* Light beam from open chest */
.lw-chest-glow {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.lw-animated-chest.opening .lw-chest-glow {
    opacity: 1;
}

/* Common - Subtle white */
.lw-animated-chest.rarity-common .lw-chest-glow {
    background: linear-gradient(0deg, 
        rgba(156, 163, 175, 0.8) 0%,
        rgba(156, 163, 175, 0.3) 50%,
        transparent 100%);
    filter: blur(20px);
}

/* Uncommon - Green */
.lw-animated-chest.rarity-uncommon .lw-chest-glow {
    background: linear-gradient(0deg, 
        rgba(34, 197, 94, 0.9) 0%,
        rgba(34, 197, 94, 0.4) 50%,
        transparent 100%);
    filter: blur(25px);
    animation: glowPulse 1s ease-in-out infinite;
}

/* Rare - Blue */
.lw-animated-chest.rarity-rare .lw-chest-glow {
    background: linear-gradient(0deg, 
        rgba(59, 130, 246, 1) 0%,
        rgba(59, 130, 246, 0.5) 50%,
        transparent 100%);
    filter: blur(30px);
    animation: glowPulse 0.8s ease-in-out infinite;
}

/* Epic - Purple */
.lw-animated-chest.rarity-epic .lw-chest-glow {
    background: linear-gradient(0deg, 
        rgba(168, 85, 247, 1) 0%,
        rgba(168, 85, 247, 0.6) 50%,
        transparent 100%);
    filter: blur(35px);
    animation: glowPulse 0.6s ease-in-out infinite, epicLightning 0.3s ease-in-out infinite;
}

/* Legendary - Gold */
.lw-animated-chest.rarity-legendary .lw-chest-glow {
    background: linear-gradient(0deg, 
        rgba(245, 158, 11, 1) 0%,
        rgba(245, 158, 11, 0.7) 40%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 100%);
    filter: blur(40px);
    width: 150px;
    animation: glowPulse 0.4s ease-in-out infinite, legendaryBurst 2s ease-out;
}

/* Mythic - Red fire */
.lw-animated-chest.rarity-mythic .lw-chest-glow {
    background: linear-gradient(0deg, 
        rgba(239, 68, 68, 1) 0%,
        rgba(239, 68, 68, 0.8) 30%,
        rgba(255, 100, 50, 0.5) 60%,
        transparent 100%);
    filter: blur(50px);
    width: 200px;
    animation: glowPulse 0.3s ease-in-out infinite, mythicFire 0.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleY(1); }
    50% { opacity: 1; transform: translateX(-50%) scaleY(1.1); }
}

@keyframes epicLightning {
    0%, 100% { filter: blur(35px) brightness(1); }
    50% { filter: blur(25px) brightness(1.5); }
}

@keyframes legendaryBurst {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    20% { transform: translateX(-50%) scale(1.5); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
}

@keyframes mythicFire {
    0%, 100% { 
        filter: blur(50px) brightness(1);
        transform: translateX(-50%) scaleY(1) scaleX(1);
    }
    25% { 
        filter: blur(45px) brightness(1.3);
        transform: translateX(-48%) scaleY(1.05) scaleX(0.95);
    }
    75% { 
        filter: blur(45px) brightness(1.3);
        transform: translateX(-52%) scaleY(1.05) scaleX(0.95);
    }
}

/* ═══════════════════════════════════════════════════════════
   PARTICLE EFFECTS
   ═══════════════════════════════════════════════════════════ */

.lw-css-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Particle burst animation */
@keyframes particleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) scale(0);
        opacity: 0;
    }
}

@keyframes particleBurst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 50px), var(--ty, -100px)) scale(0);
        opacity: 0;
    }
}

/* Generate particles via JS or use these preset ones */
.lw-particle-1 { --tx: -80px; --ty: -120px; animation-delay: 0s; }
.lw-particle-2 { --tx: 60px; --ty: -140px; animation-delay: 0.1s; }
.lw-particle-3 { --tx: -40px; --ty: -100px; animation-delay: 0.15s; }
.lw-particle-4 { --tx: 90px; --ty: -90px; animation-delay: 0.2s; }
.lw-particle-5 { --tx: -100px; --ty: -80px; animation-delay: 0.05s; }
.lw-particle-6 { --tx: 20px; --ty: -160px; animation-delay: 0.25s; }

/* ═══════════════════════════════════════════════════════════
   SCREEN EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* Screen shake for epic+ */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5px, -3px); }
    20% { transform: translate(5px, 3px); }
    30% { transform: translate(-3px, 5px); }
    40% { transform: translate(3px, -5px); }
    50% { transform: translate(-5px, 3px); }
    60% { transform: translate(5px, -3px); }
    70% { transform: translate(-3px, -5px); }
    80% { transform: translate(3px, 5px); }
    90% { transform: translate(-5px, -3px); }
}

.lw-reveal-theater.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

/* Vignette pulse */
@keyframes vignettePulse {
    0%, 100% { 
        box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
    }
    50% { 
        box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
    }
}

.lw-reveal-theater.vignette-pulse {
    animation: vignettePulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   ITEM REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

/* Item appears from glow */
@keyframes itemAppear {
    0% {
        transform: translateY(50px) scale(0.5);
        opacity: 0;
        filter: blur(10px);
    }
    60% {
        transform: translateY(-10px) scale(1.1);
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

.lw-item-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    border: 2px solid var(--rarity-color, #666);
    box-shadow: 0 0 30px var(--rarity-glow, transparent);
    opacity: 0;
    z-index: 10;
}

.lw-item-card.revealing {
    animation: itemAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Rarity-specific borders */
.lw-item-card.rarity-common { --rarity-color: #9ca3af; --rarity-glow: rgba(156, 163, 175, 0.3); }
.lw-item-card.rarity-uncommon { --rarity-color: #22c55e; --rarity-glow: rgba(34, 197, 94, 0.4); }
.lw-item-card.rarity-rare { --rarity-color: #3b82f6; --rarity-glow: rgba(59, 130, 246, 0.5); }
.lw-item-card.rarity-epic { --rarity-color: #a855f7; --rarity-glow: rgba(168, 85, 247, 0.5); }
.lw-item-card.rarity-legendary { --rarity-color: #f59e0b; --rarity-glow: rgba(245, 158, 11, 0.6); }
.lw-item-card.rarity-mythic { --rarity-color: #ef4444; --rarity-glow: rgba(239, 68, 68, 0.7); }

/* ═══════════════════════════════════════════════════════════
   MYTHIC SPECIAL EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* Full screen mythic overlay */
.lw-mythic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(239, 68, 68, 0.3) 0%,
        rgba(0, 0, 0, 0.9) 100%);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
}

.lw-mythic-overlay.active {
    animation: mythicOverlay 3s ease-out forwards;
}

@keyframes mythicOverlay {
    0% { opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Mythic text effect */
.lw-mythic-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 6rem;
    font-weight: 900;
    color: #ef4444;
    text-shadow: 
        0 0 20px #ef4444,
        0 0 40px #ef4444,
        0 0 60px #ef4444,
        0 0 80px #ff6b6b;
    letter-spacing: 0.5em;
    z-index: 10001;
    pointer-events: none;
}

.lw-mythic-text.active {
    animation: mythicTextReveal 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes mythicTextReveal {
    0% { 
        transform: translate(-50%, -50%) scale(0) rotate(-10deg);
        opacity: 0;
    }
    30% { 
        transform: translate(-50%, -50%) scale(1.3) rotate(5deg);
        opacity: 1;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    80% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(2) rotate(0deg);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   COUNTDOWN ANIMATION
   ═══════════════════════════════════════════════════════════ */

.lw-countdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 900;
    color: #d4af37;
    text-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
    z-index: 10002;
    pointer-events: none;
}

.lw-countdown.tick {
    animation: countdownTick 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes countdownTick {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    30% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

/* "FIGHT!" text */
.lw-fight-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 8rem;
    font-weight: 900;
    color: #ef4444;
    text-shadow: 
        0 0 30px rgba(239, 68, 68, 0.8),
        0 0 60px rgba(239, 68, 68, 0.5);
    letter-spacing: 0.3em;
    z-index: 10002;
    pointer-events: none;
}

.lw-fight-text.active {
    animation: fightTextReveal 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fightTextReveal {
    0% { 
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    40% { 
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
    70% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════
   LOOT WARS - SCROLL REEL SYSTEM
   Horizontal spinning reel animation like CS:GO case openings
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   REEL CONTAINER & VIEWPORT
   ═══════════════════════════════════════════════════════════ */

.lw-reel-container {
    position: relative;
    width: 100%;
    height: 140px;
    margin: 20px 0;
}

.lw-reel-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, #0a0a0a 0%, #151515 50%, #0a0a0a 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
}

/* Center indicator line */
.lw-reel-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    z-index: 100;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

.lw-reel-indicator::before,
.lw-reel-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.lw-reel-indicator::before {
    top: -2px;
    border-bottom: 12px solid #d4af37;
}

.lw-reel-indicator::after {
    bottom: -2px;
    border-top: 12px solid #d4af37;
}

/* ═══════════════════════════════════════════════════════════
   SCROLLING STRIP
   ═══════════════════════════════════════════════════════════ */

.lw-reel-strip {
    display: flex;
    height: 100%;
    padding: 10px 0;
    will-change: transform;
}

/* Individual item in reel */
.lw-reel-item {
    flex-shrink: 0;
    width: 110px;
    height: 100%;
    margin: 0 5px;
    border-radius: 8px;
    border: 3px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(30,30,30,0.8) 100%);
    transition: transform 0.1s ease;
}

.lw-reel-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 5px;
}

.lw-reel-item-name {
    font-size: 0.65rem;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    font-weight: 600;
}

.lw-reel-item-value {
    font-size: 0.9rem;
    font-weight: 900;
    color: #d4af37;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RARITY COLORS FOR REEL ITEMS
   ═══════════════════════════════════════════════════════════ */

.lw-reel-item.common { 
    border-color: #9ca3af; 
}

.lw-reel-item.uncommon { 
    border-color: #22c55e; 
}

.lw-reel-item.rare { 
    border-color: #3b82f6; 
}

.lw-reel-item.epic { 
    border-color: #a855f7; 
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); 
}

.lw-reel-item.legendary { 
    border-color: #f59e0b; 
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); 
}

.lw-reel-item.mythic { 
    border-color: #ef4444; 
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); 
    animation: reelMythicGlow 1s ease-in-out infinite; 
}

@keyframes reelMythicGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); }
    50% { box-shadow: 0 0 40px rgba(239, 68, 68, 0.9); }
}

/* Winner highlight after landing */
.lw-reel-item.landed {
    transform: scale(1.1);
    z-index: 10;
    animation: landedPulse 0.5s ease-out;
}

@keyframes landedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}

/* ═══════════════════════════════════════════════════════════
   EDGE FADE EFFECT
   ═══════════════════════════════════════════════════════════ */

.lw-reel-viewport::before,
.lw-reel-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 50;
    pointer-events: none;
}

.lw-reel-viewport::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10,10,10,1) 0%, transparent 100%);
}

.lw-reel-viewport::after {
    right: 0;
    background: linear-gradient(-90deg, rgba(10,10,10,1) 0%, transparent 100%);
}

/* ═══════════════════════════════════════════════════════════
   BATTLE ARENA LAYOUT FOR SCROLL
   ═══════════════════════════════════════════════════════════ */

.lw-scroll-arena {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    flex: 1;
    justify-content: center;
}

.lw-scroll-player-section {
    display: flex;
    flex-direction: column;
}

.lw-scroll-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: none;
}

.lw-scroll-player-name {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lw-scroll-player-name.you { 
    color: #4ade80; 
}

.lw-scroll-player-name.opponent { 
    color: #f87171; 
}

.lw-scroll-player-total {
    font-size: 1.5rem;
    font-weight: 900;
    color: #d4af37;
    font-family: 'Noto Sans JP', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   VS DIVIDER
   ═══════════════════════════════════════════════════════════ */

.lw-scroll-vs {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    letter-spacing: 0.2em;
}

/* ═══════════════════════════════════════════════════════════
   ROUND INDICATOR (SCROLL VERSION)
   ═══════════════════════════════════════════════════════════ */

.lw-scroll-round-indicator {
    text-align: center;
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.lw-scroll-round-indicator span {
    color: #d4af37;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   RESULT ACTIONS (SCROLL VERSION)
   ═══════════════════════════════════════════════════════════ */

.lw-scroll-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.lw-scroll-actions.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════
   SPINNING STATE EFFECTS
   ═══════════════════════════════════════════════════════════ */

.lw-reel-viewport.spinning {
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.8),
        0 0 20px rgba(212, 175, 55, 0.3);
}

.lw-reel-viewport.spinning .lw-reel-indicator {
    animation: indicatorPulse 0.3s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); 
    }
    50% { 
        box-shadow: 0 0 35px rgba(212, 175, 55, 1); 
    }
}

/* ═══════════════════════════════════════════════════════════
   WINNER FLASH EFFECT
   ═══════════════════════════════════════════════════════════ */

.lw-reel-viewport.winner-flash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    animation: winnerFlash 0.3s ease-out;
    pointer-events: none;
    z-index: 200;
}

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

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .lw-reel-item {
        width: 90px;
    }
    
    .lw-reel-item img {
        width: 45px;
        height: 45px;
    }
    
    .lw-reel-container {
        height: 120px;
    }
    
    .lw-scroll-arena {
        gap: 20px;
        padding: 15px;
    }
    
    .lw-scroll-player-header {
        padding: 8px 12px;
    }
    
    .lw-scroll-player-name {
        font-size: 1rem;
    }
    
    .lw-scroll-player-total {
        font-size: 1.2rem;
    }
    
    .lw-scroll-vs {
        font-size: 1.5rem;
    }
    
    .lw-reel-viewport::before,
    .lw-reel-viewport::after {
        width: 50px;
    }
    
    .lw-reel-indicator::before,
    .lw-reel-indicator::after {
        border-left-width: 7px;
        border-right-width: 7px;
    }
    
    .lw-reel-indicator::before {
        border-bottom-width: 9px;
    }
    
    .lw-reel-indicator::after {
        border-top-width: 9px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .lw-reel-item {
        width: 75px;
        margin: 0 3px;
    }
    
    .lw-reel-item img {
        width: 38px;
        height: 38px;
    }
    
    .lw-reel-item-value {
        font-size: 0.75rem;
    }
    
    .lw-reel-container {
        height: 100px;
    }
    
    .lw-scroll-player-name {
        font-size: 0.9rem;
    }
    
    .lw-scroll-player-total {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   BATTLE RESULT OVERLAY (SCROLL VERSION)
   ═══════════════════════════════════════════════════════════ */

.lw-scroll-result-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 500;
}

.lw-scroll-result-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.lw-scroll-result-text {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: resultTextPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lw-scroll-result-text.victory {
    color: #4ade80;
    text-shadow: 0 0 30px rgba(74, 222, 128, 0.6);
}

.lw-scroll-result-text.defeat {
    color: #f87171;
    text-shadow: 0 0 30px rgba(248, 113, 113, 0.6);
}

.lw-scroll-result-text.draw {
    color: #d4af37;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

@keyframes resultTextPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.lw-scroll-result-details {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #888;
}

.lw-scroll-result-details .amount {
    color: #d4af37;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   CONFETTI CONTAINER
   ═══════════════════════════════════════════════════════════ */

.lw-confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.lw-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.lw-confetti.active {
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}