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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb, #90caf9);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1565c0;
}

.game-container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    padding: 20px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    color: #1976d2;
}

.header p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.stat {
    background: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1565c0;
}

.game-area {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(33, 150, 243, 0.3);
}

.grug {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.grug img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.health-bar {
    width: 200px;
    height: 10px;
    background: rgba(255,0,0,0.3);
    border-radius: 5px;
    margin: 10px auto;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff8888);
    width: 100%;
    transition: width 0.5s ease;
}

.throwing-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.weapon-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.weapon-btn {
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid #2196f3;
    color: #1565c0;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.weapon-btn:hover {
    background: rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

.weapon-btn.active {
    background: #2196f3;
    color: white;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.weapon-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

#custom-weapon {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #2196f3;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #1565c0;
    text-align: center;
    outline: none;
}

#custom-weapon::placeholder {
    color: rgba(21, 101, 192, 0.6);
}

#custom-weapon:focus {
    border-color: #42a5f5;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.3);
}

.throw-button {
    background: linear-gradient(45deg, #2196f3, #42a5f5);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.throw-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
}

.throw-button:active {
    transform: translateY(-1px);
}

.message {
    font-size: 1.3rem;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message.show {
    opacity: 1;
}

.instructions {
    background: rgba(255,255,255,0.8);
    padding: 15px;
    border-radius: 10px;
    font-style: italic;
    color: #1565c0;
    opacity: 0.9;
}

.projectile {
    position: absolute;
    font-size: 2rem;
    z-index: 100;
    pointer-events: none;
}

.damage-text {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: #ff4444;
    z-index: 101;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.analyze-button {
    background: linear-gradient(45deg, #2196f3, #42a5f5);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.analyze-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.5);
}

.analyze-button:active {
    transform: translateY(-1px);
}

.analyze-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.analysis-result {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.lethality-meter {
    width: 100%;
    height: 20px;
    background: rgba(33, 150, 243, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.lethality-fill {
    height: 100%;
    transition: width 1s ease;
    border-radius: 10px;
}

.death-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.death-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.death-content {
    text-align: center;
    color: #fff;
}

.death-content h2 {
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.death-image {
    max-width: 400px;
    max-height: 400px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.restart-btn {
    background: linear-gradient(45deg, #2196f3, #42a5f5);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.alpaca {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.alpaca img {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .weapon-selector {
        gap: 8px;
    }
    
    .weapon-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .grug img {
        width: 150px;
    }
    
    .health-bar {
        width: 150px;
    }
    
    .alpaca img {
        width: 150px;
    }
}