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

:root {
    --grass-dark: #2d8a3e;
    --grass-light: #4caf50;
    --grass-alt: #43a047;
    --sky-top: #87ceeb;
    --sky-bottom: #e8f5e9;
    --wood: #8d6e63;
    --wood-dark: #5d4037;
    --gold: #ffd700;
    --danger: #ff4444;
    --zombie-green: #7cb342;
    --text-dark: #2e2e2e;
    --text-light: #ffffff;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 50%, var(--grass-light) 50%, var(--grass-dark) 100%);
    width: 100vw;
    height: 100vh;
    user-select: none;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
}

.screen.active {
    display: flex;
}

/* ===== Start Screen ===== */
#start-screen {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: linear-gradient(180deg, #1a472a 0%, #2d8a3e 40%, #4caf50 70%, #388e3c 100%);
    position: relative;
    overflow: hidden;
}

#start-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.title-container {
    text-align: center;
    z-index: 1;
}

.game-title {
    font-size: 56px;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 3px 3px 0 var(--wood-dark), 6px 6px 0 rgba(0,0,0,0.3);
    letter-spacing: 4px;
    animation: titleBounce 2s ease-in-out infinite;
}

@keyframes titleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.game-subtitle {
    font-size: 28px;
    color: #fff;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 300;
    letter-spacing: 8px;
}

.difficulty-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.select-label {
    font-size: 20px;
    color: #e8f5e9;
    letter-spacing: 4px;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 2px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(1px);
}

.difficulty-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
    border: 3px solid rgba(255,255,255,0.3);
    min-width: 200px;
    justify-content: center;
}

.difficulty-btn:hover {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    border-color: rgba(255,255,255,0.6);
}

.btn-icon {
    font-size: 24px;
}

.how-to-play {
    text-align: center;
    color: #c8e6c9;
    z-index: 1;
    max-width: 500px;
    line-height: 1.8;
    font-size: 15px;
    background: rgba(0,0,0,0.2);
    padding: 20px 30px;
    border-radius: 16px;
}

.how-to-play h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 8px;
}

/* ===== Game Screen ===== */
#game-screen {
    flex-direction: column;
    height: 100vh;
}

.game-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(180deg, #5d4037, #795548);
    color: white;
    font-size: 16px;
    min-height: 48px;
    border-bottom: 3px solid #4e342e;
}

.hud-left, .hud-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hud-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-icon {
    font-size: 20px;
}

.hud-value {
    font-weight: 700;
    font-size: 20px;
    min-width: 30px;
}

.wave-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: wavePulse 2s ease-in-out infinite;
}

@keyframes wavePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.small-btn {
    padding: 6px 12px;
    font-size: 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 8px;
}

.small-btn:hover {
    background: rgba(255,255,255,0.3);
}

 .speed-control {
     display: inline-flex;
     gap: 2px;
     background: rgba(0,0,0,0.3);
     border-radius: 8px;
     padding: 2px;
 }

 .speed-btn {
     padding: 4px 8px;
     font-size: 12px;
     font-weight: 700;
     color: rgba(255,255,255,0.5);
     background: transparent;
     border: none;
     border-radius: 6px;
     cursor: pointer;
     transition: all 0.15s;
 }

 .speed-btn:hover {
     color: #fff;
     background: rgba(255,255,255,0.15);
 }

 .speed-btn.active {
     color: #fff;
     background: var(--gold);
 }

/* ===== Battlefield ===== */
.battlefield {
    flex: 1;
    position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            0deg,
            var(--grass-light) 0px,
            var(--grass-light) 20%,
            var(--grass-alt) 20%,
            var(--grass-alt) 40%,
            var(--grass-light) 40%,
            var(--grass-light) 60%,
            var(--grass-alt) 60%,
            var(--grass-alt) 80%,
            var(--grass-light) 80%,
            var(--grass-light) 100%
        );
}

.lawn-mowers {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 5;
}

.lawn-mower {
    position: absolute;
    font-size: 24px;
    transition: all 0.5s ease;
    left: 4px;
}

.lawn-mower[data-row="0"] { top: 10%; }
.lawn-mower[data-row="1"] { top: 30%; }
.lawn-mower[data-row="2"] { top: 50%; }
.lawn-mower[data-row="3"] { top: 70%; }
.lawn-mower[data-row="4"] { top: 90%; }

.lawn-mower.used {
    opacity: 0;
    transform: translateX(200px);
}

.lawn-mower.mower-activate {
    animation: mowerMove 0.8s linear forwards;
}

@keyframes mowerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(100vw)); }
}

.rows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.row {
    position: absolute;
    width: 100%;
    height: 20%;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.row[data-row="0"] { top: 0; }
.row[data-row="1"] { top: 20%; }
.row[data-row="2"] { top: 40%; }
.row[data-row="3"] { top: 60%; }
.row[data-row="4"] { top: 80%; }

/* ===== Zombie ===== */
.zombie {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-50%);
    top: 50%;
    z-index: 10;
    transition: none;
}

.zombie-emoji {
    font-size: 42px;
    line-height: 1;
}

.zombie.walking .zombie-emoji {
    animation: zombieWalk 0.4s ease-in-out infinite;
}

@keyframes zombieWalk {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.zombie-word {
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 2px;
    white-space: nowrap;
    margin-top: 2px;
    border: 2px solid var(--zombie-green);
}

.word-char {
    display: inline-block;
    transition: all 0.1s ease;
}

.word-char.typed {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    transform: scale(1.1);
}

/* ===== Bullet ===== */
.bullet {
    position: absolute;
    font-size: 16px;
    z-index: 15;
    transition: none;
    animation: bulletGlow 0.2s ease-in-out infinite alternate;
}

@keyframes bulletGlow {
    from { filter: brightness(1); }
    to { filter: brightness(1.5); }
}

/* ===== Particles ===== */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 20;
}

.score-popup {
    position: absolute;
    color: var(--gold);
    font-weight: 900;
    font-size: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: scoreFloat 1s ease-out forwards;
    pointer-events: none;
    z-index: 25;
    white-space: nowrap;
}

@keyframes scoreFloat {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-60px) scale(1.3); }
}

/* ===== Input Area ===== */
.input-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(180deg, #795548, #5d4037);
    border-top: 3px solid #4e342e;
}

.plant-shooter {
    font-size: 40px;
    animation: plantBounce 1.5s ease-in-out infinite;
}

@keyframes plantBounce {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.word-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 24px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 3px;
    border: 3px solid #66bb6a;
    border-radius: 12px;
    background: #1a1a2e;
    color: #66bb6a;
    outline: none;
    transition: border-color 0.3s;
    caret-color: var(--gold);
}

.word-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.word-input::placeholder {
    color: #555;
    font-size: 16px;
    letter-spacing: 1px;
}

.input-hint {
    position: absolute;
    top: -24px;
    left: 20px;
    font-size: 14px;
    font-family: 'Consolas', monospace;
    letter-spacing: 2px;
}

.hint-typed {
    color: var(--gold);
    font-weight: 700;
}

.hint-remaining {
    color: #999;
}

.hint-error {
    color: var(--danger);
}

/* ===== Overlay Screens ===== */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.overlay.active {
    display: flex;
}

.overlay-content {
    background: linear-gradient(135deg, #2d8a3e, #1a472a);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 3px solid rgba(255,255,255,0.2);
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.overlay-content h2 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.overlay-content .btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.overlay-content .btn:hover {
    background: linear-gradient(135deg, #81c784, #66bb6a);
}

/* ===== Final Stats ===== */
.final-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: #a5d6a7;
    letter-spacing: 2px;
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
}

 .final-record {
     font-size: 18px;
     font-weight: 700;
     color: #FFD700;
     text-align: center;
     min-height: 24px;
     margin: 8px 0 0;
 }

/* ===== Shake Effect ===== */
.battlefield.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .game-title { font-size: 36px; }
    .game-subtitle { font-size: 20px; }
    .zombie-emoji { font-size: 30px; }
    .zombie-word { font-size: 13px; padding: 2px 6px; }
    .word-input { font-size: 20px; padding: 10px 16px; }
    .plant-shooter { font-size: 30px; }
    .hud-value { font-size: 16px; }
}

.chinese-popup {
    position: absolute;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    background: rgba(0,0,0,0.8);
    padding: 8px 18px;
    border-radius: 12px;
    border: 2px solid #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: chineseFloat 2s ease-out forwards;
    pointer-events: none;
    z-index: 26;
    white-space: nowrap;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    text-align: center;
    line-height: 1.5;
}

@keyframes chineseFloat {
    0% { opacity: 1; transform: translateY(0) scale(0.8); }
    15% { transform: translateY(-10px) scale(1.1); }
    30% { transform: translateY(-15px) scale(1); }
    100% { opacity: 0; transform: translateY(-70px) scale(0.9); }
}


.zh-word {
    color: #90EE90;
    font-weight: 900;
    font-family: Consolas, Courier New, monospace;
    letter-spacing: 1px;
}

.zh-pos {
    color: #FFB74D;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255,183,77,0.2);
    padding: 1px 6px;
    border-radius: 4px;
    margin: 0 2px;
}

.zh-meaning {
    color: #FFFFFF;
    font-weight: 700;
}


/* ===== User Panel ===== */
.user-panel {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
}

.user-current {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.15);
}

.user-icon {
    font-size: 20px;
}

.user-name {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    min-width: 40px;
}

.user-switch-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 12px;
    font-size: 13px;
}

.user-switch-btn:hover {
    background: rgba(255,255,255,0.25);
}

.user-best {
    text-align: center;
    color: #a5d6a7;
    font-size: 14px;
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    border-radius: 10px;
    z-index: 1;
}

/* ===== User Select Screen ===== */
.user-select-content {
    max-width: 400px;
    width: 90%;
}

.user-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 16px 0;
}

.user-empty {
    color: #a5d6a7;
    text-align: center;
    padding: 20px;
    font-size: 15px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.user-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.2);
}

.user-item.active {
    border-color: var(--gold);
    background: rgba(255,215,0,0.1);
}

.user-item-name {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.user-item-info {
    color: #a5d6a7;
    font-size: 12px;
    margin-left: 10px;
    flex: 1;
}

.user-delete-btn {
    background: rgba(255,68,68,0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255,68,68,0.3);
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
}

.user-delete-btn:hover {
    background: rgba(255,68,68,0.4);
}

.user-create {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.username-input {
    flex: 1;
    padding: 8px 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 15px;
    outline: none;
}

.username-input:focus {
    border-color: var(--gold);
}

.username-input::placeholder {
    color: #888;
}

.user-create-btn {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    font-size: 15px;
}

.user-cancel-btn {
    background: rgba(255,255,255,0.1);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 18px;
    font-size: 14px;
    margin-top: 8px;
    width: 100%;
}

/* ===== Wave Reward Screen ===== */
.reward-content {
    max-width: 480px;
    width: 90%;
}

.reward-content h2 {
    font-size: 28px;
}

.reward-subtitle {
    color: #a5d6a7;
    font-size: 18px;
    margin-bottom: 20px;
}

.reward-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.reward-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 18px 14px;
    width: 120px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reward-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,215,0,0.05));
    box-shadow: 0 8px 24px rgba(255,215,0,0.2);
}

.reward-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.reward-name {
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.reward-desc {
    color: #a5d6a7;
    font-size: 12px;
}

/* ===== Buff Indicator ===== */
.buff-indicator {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 20px;
    z-index: 30;
    border: 2px solid var(--gold);
    animation: buffPulse 1.5s ease-in-out infinite;
}

@keyframes buffPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== Frozen Zombie ===== */
.zombie.frozen .zombie-emoji {
    filter: brightness(1.5) saturate(0.3) hue-rotate(180deg);
    animation: none;
}

.zombie.frozen .zombie-word {
    border-color: #64b5f6;
    background: rgba(30, 100, 200, 0.75);
}

/* ===== Fast Bullet ===== */
.bullet-fast {
    animation: bulletFastGlow 0.15s ease-in-out infinite alternate;
}

@keyframes bulletFastGlow {
    from { filter: brightness(1); transform: scale(1); }
    to { filter: brightness(1.8); transform: scale(1.2); }
}
/* ===== Upgrade Bar ===== */
.upgrade-bar {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 18px;
    z-index: 30;
    border: 2px solid var(--gold);
    color: #fff;
    font-weight: 700;
    letter-spacing: 4px;
    animation: upgradePulse 2s ease-in-out infinite;
}

 @keyframes upgradePulse {
     0%, 100% { border-color: var(--gold); }
     50% { border-color: #66bb6a; }
 }

 .upgrade-bar .doomshroom-btn {
     cursor: pointer;
     pointer-events: auto;
     transition: transform 0.15s;
     display: inline-block;
 }

 .upgrade-bar .doomshroom-btn:hover {
     transform: scale(1.25);
 }

 .upgrade-bar .doomshroom-btn:active {
     transform: scale(0.9);
 }

 .upgrade-bar .ice-shroom-btn {
     cursor: pointer;
     pointer-events: auto;
     transition: transform 0.15s;
     display: inline-block;
 }

 .upgrade-bar .ice-shroom-btn:hover {
     transform: scale(1.25);
 }

 .upgrade-bar .ice-shroom-btn:active {
     transform: scale(0.9);
 }

 .upgrade-bar .jalapeno-btn {
     cursor: pointer;
     pointer-events: auto;
     transition: transform 0.15s;
     display: inline-block;
 }

 .upgrade-bar .jalapeno-btn:hover {
     transform: scale(1.25);
 }

 .upgrade-bar .jalapeno-btn:active {
     transform: scale(0.9);
 }

 .upgrade-bar .jalapeno-hint {
     color: #FF6B6B;
     font-size: 13px;
     animation: buffPulse 1s ease-in-out infinite;
 }

 .upgrade-bar .upgrade-passive {
     cursor: default;
     transition: transform 0.15s;
     display: inline-block;
 }

 .upgrade-bar .upgrade-passive:hover {
     transform: scale(1.2);
 }

/* ===== Reward Card Upgrade ===== */
.reward-count {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    background: rgba(255,215,0,0.15);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* ===== Slowed Zombie (Ice Pea) ===== */
.zombie.slowed .zombie-emoji {
    filter: brightness(1.3) hue-rotate(180deg) saturate(0.6);
}

.zombie.slowed .zombie-word {
    border-color: #64b5f6;
    background: rgba(30, 100, 200, 0.75);
}

/* ===== Fire Bullet ===== */
.bullet-fire {
    animation: bulletFire 0.15s ease-in-out infinite alternate;
}

@keyframes bulletFire {
    from { filter: brightness(1); transform: scale(1); }
    to { filter: brightness(1.6); transform: scale(1.15); }
}

/* ===== Ice Bullet ===== */
.bullet-ice {
    animation: bulletIce 0.2s ease-in-out infinite alternate;
}

@keyframes bulletIce {
    from { filter: brightness(1) hue-rotate(0deg); }
    to { filter: brightness(1.4) hue-rotate(20deg); }
}

/* ===== Poison Bullet ===== */
.bullet-poison {
    animation: bulletPoison 0.2s ease-in-out infinite alternate;
}

@keyframes bulletPoison {
    from { filter: brightness(1) saturate(1); }
    to { filter: brightness(1.3) saturate(1.5); }
}

/* ===== Poisoned Zombie ===== */
.zombie.poisoned .zombie-emoji {
    filter: hue-rotate(90deg) saturate(1.5);
}
/* ===== Boss Zombie ===== */
.zombie.boss {
    z-index: 15;
}

.zombie.boss .zombie-emoji {
    font-size: 56px;
    filter: hue-rotate(30deg) saturate(1.5) brightness(1.1);
    animation: bossIdle 1.5s ease-in-out infinite;
}

@keyframes bossIdle {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); }
}

.zombie.boss .zombie-word {
    font-size: 18px;
    border-color: #FF4444;
    background: rgba(120, 0, 0, 0.85);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.boss-hp-bar {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin: 2px 0;
}

.boss-hp-pip {
    width: 14px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
}

.boss-hp-pip.filled {
    background: #FF4444;
    border-color: #FF6666;
    box-shadow: 0 0 4px rgba(255, 68, 68, 0.8);
}
/* ===== Continue Game Button ===== */
.continue-section {
    z-index: 1;
}

.continue-btn {
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #3e2723;
    border: 3px solid rgba(255,255,255,0.4);
    font-size: 22px;
    padding: 14px 40px;
    letter-spacing: 4px;
    animation: continuePulse 2s ease-in-out infinite;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #FFE082, #FFD54F);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

@keyframes continuePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(255, 215, 0, 0.3); }
}
