body {
    margin: 0;
    padding: 0;
    background-color: #2c3e50;
    font-family: 'Jua', sans-serif;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 800px;
    height: 480px;
    background: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#game-canvas {
    display: block;
    background: #4db6ac;
    /* 배경색 (추후 이미지로 대체 가능) */
    position: absolute;
    bottom: 0;
}

/* HUD System */
#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
}

.status-box {
    width: 300px;
}

.status-box .name {
    font-size: 18px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px black;
}

.status-box.right {
    text-align: right;
}

.hp-bar-container {
    width: 100%;
    height: 25px;
    background: #333;
    border: 3px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.hp-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #00e676, #00c853);
    transition: width 0.2s ease-out;
}

.status-box.right .hp-bar {
    float: right;
    background: linear-gradient(to bottom, #ff1744, #d50000);
}

#timer-box {
    font-size: 40px;
    font-weight: bold;
    color: #ffca28;
    text-shadow: 2px 2px 4px black;
    text-align: center;
    width: 100px;
}

/* 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 0px #f57f17;
}

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

/* Buttons */
.btn {
    padding: 15px 30px;
    font-size: 24px;
    font-family: inherit;
    background: #ef5350;
    color: white;
    border: 3px solid white;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.1s, background 0.2s;
}

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

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

/* Announcement */
#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 yellow;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}