body {
    margin: 0;
    overflow: hidden;
    background-color: #f0f4f8;
    font-family: 'Arial', sans-serif;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#ui {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 24px;
    font-weight: bold;
    color: #444;
    z-index: 10;
}

#game-world {
    width: 100%;
    max-width: 800px;
    height: 300px;
    background-color: #fff;
    border-bottom: 5px solid #ff99aa;
    position: relative;
    overflow: hidden;
}

/* 캐릭터 스타일 */
.character {
    width: 50px;
    height: 50px;
    background-color: #ff99aa;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 50px;
    transition: transform 0.1s, height 0.1s, border-radius 0.1s;
}

/* 눈과 홍조 */
.eyes::before, .eyes::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #333;
    border-radius: 50%;
    top: 15px;
}
.eyes::before { left: 10px; }
.eyes::after { right: 10px; }

.blush::before, .blush::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 4px;
    background-color: #ffb6c1;
    border-radius: 50%;
    top: 25px;
}
.blush::before { left: 5px; }
.blush::after { right: 5px; }

/* 점프 상태 */
.character.jump {
    bottom: 120px;
}

/* 숙이기 상태 */
.character.duck {
    height: 25px;
    border-radius: 25px 25px 5px 5px;
    bottom: 0;
}

/* 장애물 스타일 */
.obstacle {
    position: absolute;
    right: -50px;
    background-color: #666;
    border-radius: 8px;
}

.obstacle.low {
    width: 30px;
    height: 40px;
    bottom: 0;
    background-color: #ffcc00; /* 점프로 피하기 */
}

.obstacle.high {
    width: 30px;
    height: 40px;
    bottom: 60px;
    background-color: #444; /* 숙여서 피하기 */
}

/* 오버레이 */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 20;
}

.hidden {
    display: none;
}

button {
    padding: 15px 30px;
    font-size: 20px;
    background-color: #ff99aa;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 0 #e68a99;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #e68a99;
}
