body {
    background: #111 url('https://images.unsplash.com/photo-1533134242443-d4fd215305ad?q=80&w=1000') center/cover no-repeat fixed;
    color: #fff;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    overflow: hidden;
}

.container {
    background: rgba(20,20,20,0.85);
    border-radius: 20px;
    box-shadow: 0 8px 32px #000a, 0 0 100px rgba(255,0,0,0.2);
    padding: 40px 32px 32px 32px;
    text-align: center;
    min-width: 350px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    backdrop-filter: blur(5px);
}

h1 {
    font-size: 2.2em;
    margin-bottom: 20px;
    letter-spacing: 2px;
    color: #ff3030;
    font-weight: 800;
    text-transform: uppercase;
}

.gun-area {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 20px auto;
    perspective: 800px;
}

.cylinder {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    margin: auto;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #555 0%, #333 50%, #222 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px #000a inset, 
        0 2px 8px #111,
        0 0 0 8px #444,
        0 0 0 10px #222;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(.68,-0.55,.27,1.55);
    transform-style: preserve-3d;
}

.cylinder::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 140px;
    background: linear-gradient(90deg, #222, #444, #222);
    transform: rotateY(90deg);
    border-radius: 10px;
}

.chambers {
    position: relative;
    width: 110px;
    height: 110px;
    transform-style: preserve-3d;
}

.chamber {
    position: absolute;
    width: 28px;
    height: 28px;
    background: #111;
    border: 3px solid #777;
    border-radius: 50%;
    box-shadow: 0 0 8px #000a inset, 0 0 5px #000;
    transition: all 0.2s;
}

.chamber.bullet {
    background: radial-gradient(circle at 60% 40%, #f7d358 60%, #b8860b 100%);
    border-color: #e6c200;
    box-shadow: 0 0 10px rgba(255,215,0,0.6);
}

.chamber.active {
    box-shadow: 0 0 16px 4px #f00a, 0 0 8px #000a inset;
    border-color: #f00;
}

/* 6个弹仓分布 */
#chamber0 { left: 41px; top: 0px; }
#chamber1 { left: 82px; top: 22px; }
#chamber2 { left: 82px; top: 72px; }
#chamber3 { left: 41px; top: 94px; }
#chamber4 { left: 0px; top: 72px; }
#chamber5 { left: 0px; top: 22px; }

.gun-body {
    position: absolute;
    left: 50%;
    top: 110px;
    width: 40px;
    height: 120px;
    background: linear-gradient(180deg, #666 0%, #444 60%, #222 100%);
    border-radius: 16px 16px 40px 40px;
    transform: translateX(-50%);
    box-shadow: 0 8px 24px #000a, 0 0 0 1px #777;
    z-index: 1;
}

.gun-body::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 25px;
    background: linear-gradient(90deg, #555, #333);
    bottom: -5px;
    left: -10px;
    border-radius: 5px;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.gun-handle {
    position: absolute;
    width: 30px;
    height: 80px;
    background: linear-gradient(90deg, #654321, #8B4513);
    bottom: -60px;
    left: 5px;
    border-radius: 5px 5px 10px 10px;
    transform: rotate(-15deg);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.7), 0 0 5px rgba(0,0,0,0.5);
}

.info {
    margin: 18px 0 10px 0;
    font-size: 1.1em;
    min-height: 32px;
    letter-spacing: 1px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

button {
    background: linear-gradient(to bottom, #600 0%, #900 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 4px 8px #0008, 0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:active {
    background: linear-gradient(to bottom, #c00 0%, #f00 100%);
    color: #fff;
    transform: scale(0.97) translateY(2px);
    box-shadow: 0 2px 4px #0008;
}

button:disabled {
    background: #333;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.blood-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://i.imgur.com/MZ8l1xP.png') center/cover no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 9999;
}

.blood-overlay.show {
    opacity: 0.8;
}

.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-8deg); }
    50% { transform: rotate(8deg); }
    80% { transform: rotate(-6deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.heartbeat {
    animation: pulse 1s infinite;
}

.sweat-drop {
    position: absolute;
    width: 8px;
    height: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    opacity: 0;
}

@keyframes sweat {
    0% { transform: translateY(0) scale(0); opacity: 0.8; }
    100% { transform: translateY(20px) scale(1); opacity: 0; }
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stat {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    color: #ddd;
}

.stat i {
    margin-right: 8px;
    color: #ff3030;
}

.difficulty {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.difficulty span {
    font-size: 1.1em;
    color: #ddd;
}

.difficulty select {
    background: #333;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.95em;
    cursor: pointer;
    outline: none;
}

.difficulty select:focus {
    border-color: #ff3030;
    box-shadow: 0 0 0 2px rgba(255,48,48,0.3);
}

.players {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    transition: all 0.3s;
}

.player.active {
    opacity: 1;
    background: rgba(255,48,48,0.2);
    border-color: rgba(255,48,48,0.4);
    transform: scale(1.05);
}

.player i {
    font-size: 1.5em;
    margin-bottom: 5px;
}

/* 响应式调整 */
@media (max-width: 500px) {
    .container {
        padding: 20px 16px;
        min-width: 300px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .gun-area {
        width: 180px;
        height: 180px;
    }
    
    button {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .difficulty {
        flex-direction: column;
    }
    
    .player {
        padding: 8px 15px;
    }
    
    .player i {
        font-size: 1.2em;
    }
} 