body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #263238;
    /* 어두운 뒷배경 */
    font-family: 'Malgun Gothic', sans-serif;
    color: white;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    margin: 0 auto;
    margin-top: calc(50vh - 300px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    background: #111;
    overflow: hidden;
    border-radius: 8px;
}

canvas {
    display: block;
}

#hud {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.hud-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #555;
}

.survivor-count span {
    color: #81c784;
}

.timer-box span {
    color: #ffd54f;
}

.zombie-count span {
    color: #e57373;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
}

.screen.active {
    display: flex;
}

.screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffd54f;
    text-shadow: 2px 2px 4px #000;
}

.screen p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn {
    padding: 15px 30px;
    font-size: 22px;
    font-family: inherit;
    font-weight: bold;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.1s, background 0.2s;
}

.btn:hover {
    background: #388e3c;
    transform: scale(1.05);
}

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

#announcement {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: white;
    text-shadow: 2px 2px 0px black, 0 0 20px red;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}