body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #2c3e50;
    overflow: hidden;
}
#gameInfo {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
}
#moneyInfo {
    padding-right: 10px;
}
#waveInfo {
    padding-left: 10px;
}
#gameContainer {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}
canvas {
    width: 100%;
    height: 100%;
    border: 2px solid #34495e;
    background-color: #27ae60;
}
#gameUI {
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
    z-index: 1;
}
.tower-button {
    width: 50px;
    height: 50px;
    background: #34495e;
    border: 2px solid #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}
.tower-button:hover {
    background: #2c3e50;
}
.tower-button.selected {
    background: #2c3e50;
    border: 2px solid #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}
#toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    display: none;
    z-index: 1000;
}
#restartButton {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    display: none;
    z-index: 2000;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
    animation: pulse 1.5s infinite;
}
#restartButton:hover {
    background-color: #c0392b;
    transform: translate(-50%, -50%) scale(1.05);
}
/* 성벽의 신 소환 버튼 스타일 */
#wallGodButton {
    position: absolute;
    top: 30%;
    left: 5%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #8e44ad;
    border: 3px solid #7d3c98;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.8);
}
#wallGodButton:hover {
    background: #9b59b6;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.9);
}
#wallGodButton:disabled {
    background: #bdc3c7;
    border-color: #95a5a6;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}
#wallGodCounter {
    position: absolute;
    top: 65%;
    left: 5%;
    transform: translateX(-50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 10;
}
/* 펄스 애니메이션 키프레임 */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
} 