.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.floating-text {
    position: fixed;
    font-weight: bold;
    font-size: 24px;
    pointer-events: none;
    z-index: 9999;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 2px 2px 4px rgba(200,200,200,0.3);
}

.floating-text.damage { color: #e67e22; }
.floating-text.crit { 
    color: #f39c12; 
    font-size: 32px;
    text-shadow: 0 0 10px #f39c12, 2px 2px 4px rgba(0,0,0,0.1);
}
.floating-text.heal { color: #27ae60; }
.floating-text.dodge { color: #3498db; }

.floating-text.enhanced.normal { 
    color: #6c757d; 
    font-size: 18px;
}

.floating-text.enhanced.crit { 
    color: #e67e22; 
    font-size: 24px;
    text-shadow: 0 0 10px #e67e22;
}

.floating-text.enhanced.heal { 
    color: #27ae60; 
    font-size: 20px;
    text-shadow: 0 0 8px #27ae60;
}

@keyframes lowHealthPulse {
    0%, 100% { background-color: rgba(255, 0, 0, 0); }
    50% { background-color: rgba(255, 0, 0, 0.1); }
}

@keyframes floatUp {
    to { transform: translateY(-80px); opacity: 0; }
}

.damage-type-icon {
    position: fixed;
    font-size: 20px;
    animation: floatUp 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@keyframes fadeOut {
    to { opacity: 0; }
}

@keyframes bossEntrance {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.achievement-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: right 0.3s ease-out;
    min-width: 300px;
    font-size: 16px;
}

.achievement-notification.show {
    right: 20px;
}

.level-up-rays {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255,215,0,0.4) 0%, transparent 70%);
    animation: rotate 1.5s linear, fadeOut 1.5s ease-out;
    pointer-events: none;
}

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

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f1f3f4;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
}

.shop-item {
    border: 1px solid #555;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.shop-item h4 {
    margin: 0 0 5px 0;
    color: #4CAF50;
}

.shop-item button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.shop-item button:disabled {
    background: #666;
    cursor: not-allowed;
}

.quick-stats {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    font-size: 13px;
    color: white;
    border: 2px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-stat-value {
    font-weight: bold;
    color: #ffd700;
    min-width: 30px;
    text-align: center;
}

.ability-button {
    position: relative;
    overflow: hidden;
}

.ability-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: var(--cooldown-progress, 0%);
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 1s linear;
    z-index: 10;
}

.ability-button.on-cooldown {
    opacity: 0.7;
}

.shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s;
}

.shortcuts-modal.show {
    opacity: 1;
}

.shortcuts-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.shortcuts-content h3 {
    margin: 0 0 20px 0;
    color: #4f9edb;
    text-align: center;
}

.shortcuts-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.shortcuts-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 5px;
}

kbd {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.victory-banner, .defeat-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 64px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 20px rgba(0,0,0,0.8), 0 0 40px currentColor;
    z-index: 10003;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.victory-banner {
    color: #ffd700;
}

.defeat-banner {
    color: #ff4444;
}

.victory-banner.show, .defeat-banner.show {
    transform: translate(-50%, -50%) scale(1);
}
.battle-scene {
    position: relative;
    overflow: hidden;
}

.battle-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
    animation: battleAmbience 8s ease-in-out infinite;
}

@keyframes battleAmbience {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

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

@keyframes screenShake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px) translateY(1px); }
    20% { transform: translateX(2px) translateY(-1px); }
    30% { transform: translateX(-1px) translateY(2px); }
    40% { transform: translateX(1px) translateY(-2px); }
    50% { transform: translateX(-2px) translateY(1px); }
    60% { transform: translateX(2px) translateY(-1px); }
    70% { transform: translateX(-1px) translateY(2px); }
    80% { transform: translateX(1px) translateY(-2px); }
    90% { transform: translateX(-1px) translateY(1px); }
}
