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

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #0a0a0a;
    overflow: hidden;
    height: 100vh;
    user-select: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(ellipse at center, #1a4a2e 0%, #0d2818 50%, #06120c 100%);
    position: relative;
}

.game-table {
    width: 1000px;
    height: 700px;
    position: relative;
    background: radial-gradient(ellipse at 50% 60%, #1e6b3e 0%, #154d2e 40%, #0f3a22 100%);
    border-radius: 60px;
    box-shadow:
        0 0 0 8px #5a3a1a,
        0 0 0 12px #3d2a12,
        0 0 0 16px #2a1a0a,
        inset 0 0 80px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.game-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 30px,
            rgba(0, 0, 0, 0.02) 30px,
            rgba(0, 0, 0, 0.02) 31px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 30px,
            rgba(0, 0, 0, 0.02) 30px,
            rgba(0, 0, 0, 0.02) 31px
        );
    pointer-events: none;
    border-radius: 60px;
}

.deck-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.deck-icon {
    font-size: 36px;
    opacity: 0.3;
    filter: grayscale(1);
}

.bottom-cards {
    display: flex;
    gap: 8px;
}

.bottom-card-slot {
    width: 55px;
    height: 78px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.2);
}

.player-area {
    position: absolute;
}

.player-bottom {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
}

.player-right {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
}

.player-top {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.player-bottom .player-info {
    display: inline-flex;
    margin-bottom: 8px;
}

.player-right .player-info {
    flex-direction: column;
    margin-bottom: 8px;
}

.player-bottom .player-info {
    display: inline-flex;
    margin-bottom: 8px;
}

.player-top .player-info {
    display: inline-flex;
    margin-bottom: 8px;
}

.player-name {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.player-role {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.player-role.landlord {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.player-role.farmer {
    color: #90ee90;
    background: rgba(144, 238, 144, 0.15);
}

.player-card-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.play-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 60px;
    z-index: 6;
    margin-top: -40px;
}

.play-slot {
    width: 200px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.play-slot-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    height: 18px;
}

.play-slot-pattern {
    color: #ffd700;
    font-size: 11px;
    font-weight: 600;
    height: 16px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    letter-spacing: 1px;
}

.play-slot-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

.status-area {
    position: absolute;
    bottom: 130px;
    left: 20px;
    z-index: 10;
    text-align: left;
}

.status-text {
    color: #ffd700;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 8px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    min-width: 200px;
}

.action-area {
    display: flex;
    gap: 10px;
    z-index: 20;
    align-items: center;
    justify-content: center;
    padding: 8px 0 4px 0;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #f0a500 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #667 0%, #445 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(100, 100, 100, 0.5);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee4444 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-accent:hover {
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #a02030 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.5);
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 40px;
    font-size: 18px;
}

.difficulty-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 25px;
    backdrop-filter: blur(4px);
}

.difficulty-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
}

input[type="radio"] {
    display: none;
}

.difficulty-radio-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

input[type="radio"]:checked + .difficulty-radio-label {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.3);
}

.difficulty-radio-label:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 98px;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.card-face {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border: 1px solid #ccc;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-face.red {
    color: #cc0000;
}

.card-face.black {
    color: #1a1a1a;
}

.card-suit {
    position: absolute;
    top: 4px;
    left: 5px;
    font-size: 12px;
}

.card-rank {
    font-size: 16px;
    font-weight: 700;
    position: absolute;
    top: 22px;
    left: 5px;
}

.card-center-suit {
    font-size: 24px;
    opacity: 0.8;
}

.card-back {
    background: linear-gradient(145deg, #1a3a6b, #2a5a8b);
    border: 2px solid #3a7ab5;
    border-radius: 6px;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 5px,
            rgba(255, 255, 255, 0.05) 5px,
            rgba(255, 255, 255, 0.05) 10px
        );
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
}

.card-back::after {
    content: '🂠';
    font-size: 28px;
    opacity: 0.5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.player-cards {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 100px;
}

.finished-badge {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 60px;
    backdrop-filter: blur(4px);
}

.game-over-box {
    background: linear-gradient(145deg, rgba(30, 30, 60, 0.95), rgba(20, 20, 40, 0.95));
    padding: 40px 60px;
    border-radius: 30px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: bounceIn 0.5s ease;
}

.game-over-box h2 {
    color: #ffd700;
    font-size: 32px;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.game-over-box p {
    color: #fff;
    font-size: 20px;
    margin-bottom: 25px;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseExplosion {
    0% { box-shadow: 0 0 10px rgba(255, 100, 0, 0.3), 0 0 20px rgba(255, 50, 0, 0.2); }
    50% { box-shadow: 0 0 30px rgba(255, 100, 0, 0.6), 0 0 60px rgba(255, 50, 0, 0.4); }
    100% { box-shadow: 0 0 10px rgba(255, 100, 0, 0.3), 0 0 20px rgba(255, 50, 0, 0.2); }
}

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

.mode-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 60px;
    backdrop-filter: blur(8px);
}

.mode-selection-container {
    text-align: center;
    padding: 40px;
}

.mode-selection-title {
    color: #ffd700;
    font-size: 42px;
    margin-bottom: 40px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    animation: fadeIn 0.6s ease;
}

.mode-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    width: 280px;
    padding: 30px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, rgba(40, 40, 60, 0.95), rgba(25, 25, 45, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.mode-btn:hover {
    transform: translateY(-8px) scale(1.02);
}

.mode-classic:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
}

.mode-crazy {
    animation: pulseExplosion 2s ease-in-out infinite;
}

.mode-crazy:hover {
    border-color: rgba(255, 100, 0, 0.8);
    box-shadow: 0 15px 50px rgba(255, 80, 0, 0.5), 0 0 30px rgba(255, 50, 0, 0.3);
    animation: shake 0.5s ease-in-out;
}

.mode-icon {
    font-size: 56px;
    margin-bottom: 5px;
}

.mode-name {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.mode-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.4;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); border-color: rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); border-color: rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.2); border-color: rgba(255, 215, 0, 0.3); }
}

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

@keyframes playEffectBounce {
    0% { opacity: 0; transform: scale(0.3) translateY(20px); }
    30% { opacity: 1; transform: scale(1.3) translateY(-10px); }
    60% { transform: scale(1) translateY(-20px); }
    100% { opacity: 1; transform: scale(1) translateY(-30px); }
}

@keyframes playEffectFade {
    0% { opacity: 1; transform: scale(1) translateY(-30px); }
    100% { opacity: 0; transform: scale(2) translateY(-80px); }
}

.play-effect {
    position: absolute;
    font-size: 40px;
    z-index: 20;
    pointer-events: none;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
}

.play-effect.play-effect-active {
    animation: playEffectBounce 0.4s ease-out forwards, playEffectFade 0.6s ease-in 0.5s forwards;
}

.player-info.active {
    animation: pulseGlow 1.5s ease-in-out infinite;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.turn-indicator {
    position: absolute;
    font-size: 20px;
    animation: pulseArrow 1s ease-in-out infinite;
    pointer-events: none;
    z-index: 15;
}

.toast-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    text-align: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-error {
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.toast-success {
    color: #51cf66;
    border: 2px solid rgba(81, 207, 102, 0.3);
}

.toast-info {
    color: #74c0fc;
    border: 2px solid rgba(116, 192, 252, 0.3);
}

.animate__animated {
    animation-duration: 0.5s;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

@media (max-width: 1050px) {
    .game-table {
        width: 95vw;
        height: 80vh;
        border-radius: 30px;
    }

    .card-face {
        width: 56px;
        height: 78px;
    }

    .card-rank {
        font-size: 13px;
    }

    .card-center-suit {
        font-size: 18px;
    }

    .card-back {
        width: 40px;
        height: 56px;
    }

    .play-area {
        gap: 20px;
    }

    .play-slot {
        width: 140px;
    }

    .status-text {
        font-size: 16px;
        padding: 6px 16px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

.card-face:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================= 核爆特效（来自导弹防空模拟器） ================= */
.nuclear-explosion-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nuclear-explosion-container.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* 核爆炸特效的具体样式 */
.nuclear-flash, .nuclear-fireball, .nuclear-mushroom, .nuclear-shockwave, .nuclear-ground-blast {
    position: absolute;
    pointer-events: none;
    z-index: 200;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}

/* 核爆闪光 */
.nuclear-flash {
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 20%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
    border-radius: 50%;
    animation: nuclearFlash 0.4s forwards;
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.9), 0 0 200px rgba(255, 255, 255, 0.7);
}

@keyframes nuclearFlash {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1; 
    }
    100% { 
        width: 600px; 
        height: 600px; 
        opacity: 0; 
    }
}

/* 核爆火球 */
.nuclear-fireball {
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.98) 0%, rgba(255, 165, 0, 0.9) 20%, rgba(255, 69, 0, 0.8) 40%, rgba(255, 0, 0, 0.6) 60%, rgba(139, 0, 0, 0.4) 80%, transparent 100%);
    border-radius: 50%;
    animation: nuclearFireball 2s forwards;
    box-shadow: 0 0 80px rgba(255, 255, 0, 0.9), 0 0 160px rgba(255, 165, 0, 0.8), 0 0 240px rgba(255, 69, 0, 0.7);
}

@keyframes nuclearFireball {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1; 
    }
    30% { 
        width: 300px; 
        height: 300px; 
        opacity: 0.95; 
    }
    60% { 
        width: 450px; 
        height: 450px; 
        opacity: 0.8; 
    }
    100% { 
        width: 600px; 
        height: 600px; 
        opacity: 0; 
    }
}

/* 蘑菇云 */
.nuclear-mushroom {
    width: 0;
    height: 0;
    animation: nuclearMushroom 4s forwards;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes nuclearMushroom {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.1);
    }
    20% { 
        width: 250px; 
        height: 350px; 
        opacity: 0.9; 
        transform: translate(-50%, -50%) scale(0.8);
    }
    40% { 
        width: 350px; 
        height: 450px; 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
    80% { 
        width: 400px; 
        height: 550px; 
        opacity: 0.8; 
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% { 
        width: 450px; 
        height: 600px; 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 蘑菇云茎部 */
.mushroom-stem {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 300px;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.95), rgba(160, 82, 45, 0.8), rgba(120, 60, 30, 0.6), rgba(80, 40, 20, 0.4));
    border-radius: 60px 60px 0 0;
    animation: stemGrow 1.5s forwards;
    box-shadow: inset 0 0 30px rgba(100, 50, 25, 0.5);
}

@keyframes stemGrow {
    0% { 
        height: 0; 
        opacity: 0; 
    }
    100% { 
        height: 300px; 
        opacity: 1; 
    }
}

/* 蘑菇云帽 */
.mushroom-cap {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse at center, 
        rgba(160, 82, 45, 0.95) 0%, 
        rgba(139, 69, 19, 0.8) 15%, 
        rgba(120, 60, 30, 0.7) 30%, 
        rgba(100, 50, 25, 0.6) 45%, 
        rgba(80, 40, 20, 0.5) 60%, 
        rgba(60, 30, 15, 0.4) 75%, 
        transparent 100%);
    border-radius: 150px 150px 70px 70px;
    animation: capGrow 2s forwards;
    animation-delay: 0.5s;
    opacity: 0;
    box-shadow: 0 0 50px rgba(160, 82, 45, 0.7), 
                0 0 100px rgba(139, 69, 19, 0.6),
                0 0 150px rgba(120, 60, 30, 0.5);
}

@keyframes capGrow {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 0;
        transform: translateX(-50%) scale(0.1);
    }
    50% { 
        width: 200px; 
        height: 130px; 
        opacity: 0.8;
        transform: translateX(-50%) scale(0.8);
    }
    100% { 
        width: 300px; 
        height: 200px; 
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* 核爆冲击波 */
.nuclear-shockwave {
    width: 0;
    height: 0;
    border: 15px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: nuclearShockwave 3s forwards;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.8), 
                0 0 100px rgba(255, 255, 200, 0.7),
                0 0 150px rgba(255, 255, 150, 0.6);
}

@keyframes nuclearShockwave {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1; 
        border-width: 30px;
    }
    100% { 
        width: 1200px; 
        height: 1200px; 
        opacity: 0; 
        border-width: 1px;
    }
}

/* 核爆地面破坏效果 */
.nuclear-ground-blast {
    width: 0;
    height: 0;
    background: radial-gradient(ellipse at center, 
        rgba(139, 69, 19, 0.9) 0%, 
        rgba(160, 82, 45, 0.7) 20%, 
        rgba(139, 69, 19, 0.5) 40%, 
        rgba(101, 50, 14, 0.3) 60%, 
        transparent 100%);
    border-radius: 50%;
    animation: nuclearGroundBlast 4s forwards;
    box-shadow: 0 0 40px rgba(139, 69, 19, 0.8),
                0 0 80px rgba(160, 82, 45, 0.6);
}

@keyframes nuclearGroundBlast {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1; 
    }
    40% { 
        width: 700px; 
        height: 300px; 
        opacity: 0.8; 
    }
    70% { 
        width: 900px; 
        height: 400px; 
        opacity: 0.6; 
    }
    100% { 
        width: 1100px; 
        height: 450px; 
        opacity: 0; 
    }
}

/* 核爆热辐射环 */
.nuclear-heat-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 8px solid rgba(255, 140, 0, 0.8);
    border-radius: 50%;
    animation: nuclearHeatRing 2.5s forwards;
    pointer-events: none;
    z-index: 190;
    box-shadow: 0 0 40px rgba(255, 140, 0, 0.7),
                0 0 80px rgba(255, 165, 0, 0.6);
}

@keyframes nuclearHeatRing {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1;
        border-width: 20px;
    }
    100% { 
        width: 700px; 
        height: 700px; 
        opacity: 0;
        border-width: 1px;
    }
}

/* 核爆文字效果 */
.nuke-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    font-weight: 900;
    color: #ffeb3b;
    text-shadow:
        0 0 10px #ff5722,
        0 0 20px #ff5722,
        0 0 40px #ff5722,
        0 0 80px #ff0000,
        0 0 120px #ff0000;
    animation: nukeText 1.5s ease-out forwards;
    z-index: 10;
    white-space: nowrap;
}

@keyframes nukeText {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* 屏幕震动 */
@keyframes nukeShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-10px, -5px); }
    20% { transform: translate(10px, 5px); }
    30% { transform: translate(-15px, 0); }
    40% { transform: translate(15px, -5px); }
    50% { transform: translate(-10px, 10px); }
    60% { transform: translate(10px, -10px); }
    70% { transform: translate(-5px, 5px); }
    80% { transform: translate(5px, 0); }
    90% { transform: translate(-5px, -5px); }
}

/* ================= 普通炸弹爆炸特效 ================= */
.bomb-explosion-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bomb-explosion-container.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* 炸弹爆炸闪光 */
.bomb-flash {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 200, 1) 0%, rgba(255, 200, 100, 0.9) 30%, rgba(255, 150, 50, 0.6) 60%, transparent 100%);
    border-radius: 50%;
    animation: bombFlash 0.3s forwards;
    box-shadow: 0 0 50px rgba(255, 200, 100, 0.9), 0 0 100px rgba(255, 150, 50, 0.7);
}

@keyframes bombFlash {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1; 
    }
    50% {
        width: 200px;
        height: 200px;
        opacity: 1;
    }
    100% { 
        width: 300px; 
        height: 300px; 
        opacity: 0; 
    }
}

/* 炸弹爆炸火球 */
.bomb-fireball {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.95) 0%, rgba(255, 140, 0, 0.85) 30%, rgba(255, 69, 0, 0.7) 60%, rgba(139, 0, 0, 0.4) 80%, transparent 100%);
    border-radius: 50%;
    animation: bombFireball 0.8s forwards;
    box-shadow: 0 0 40px rgba(255, 255, 0, 0.9), 0 0 80px rgba(255, 140, 0, 0.8), 0 0 120px rgba(255, 69, 0, 0.6);
}

@keyframes bombFireball {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1; 
    }
    40% { 
        width: 150px; 
        height: 150px; 
        opacity: 0.95; 
    }
    100% { 
        width: 250px; 
        height: 250px; 
        opacity: 0; 
    }
}

/* 炸弹爆炸冲击波 */
.bomb-shockwave {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 8px solid rgba(255, 200, 100, 0.9);
    border-radius: 50%;
    animation: bombShockwave 0.6s forwards;
    box-shadow: 0 0 30px rgba(255, 200, 100, 0.8), 0 0 60px rgba(255, 165, 0, 0.6);
}

@keyframes bombShockwave {
    0% { 
        width: 0; 
        height: 0; 
        opacity: 1; 
        border-width: 15px;
    }
    100% { 
        width: 400px; 
        height: 400px; 
        opacity: 0; 
        border-width: 1px;
    }
}

/* 炸弹爆炸火花 */
.bomb-sparks {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
}

.bomb-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffff00 0%, #ff8800 50%, transparent 100%);
    border-radius: 50%;
    animation: bombSpark 0.5s forwards;
}

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

/* 炸弹爆炸文字 */
.bomb-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    font-weight: 900;
    color: #ff6b35;
    text-shadow:
        0 0 10px #ff4500,
        0 0 20px #ff4500,
        0 0 40px #ff0000,
        0 0 60px #ff0000;
    animation: bombText 0.8s ease-out forwards;
    z-index: 10;
    white-space: nowrap;
}

@keyframes bombText {
    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);
        opacity: 0;
    }
}

/* 炸弹屏幕震动（比核爆轻微） */
@keyframes bombShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5px, -3px); }
    20% { transform: translate(5px, 3px); }
    30% { transform: translate(-8px, 0); }
    40% { transform: translate(8px, -3px); }
    50% { transform: translate(-5px, 5px); }
    60% { transform: translate(5px, -5px); }
    70% { transform: translate(-3px, 3px); }
    80% { transform: translate(3px, 0); }
    90% { transform: translate(-3px, -3px); }
}