@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'GmarketSansMedium', sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #e0f2f1; /* 부드러운 민트 블루 */
    display: flex;
    justify-content: center;
    align-items: center;
}

#ui {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

#ui h1 {
    font-size: 3rem;
    color: #00796b;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

#ui p {
    color: #004d40;
    margin-bottom: 20px;
}

#timer {
    font-size: 4rem;
    color: #d84315;
    font-weight: bold;
}

#start-btn {
    padding: 15px 40px;
    font-size: 1.5rem;
    background-color: #00796b;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.3);
}

#start-btn:hover {
    background-color: #004d40;
    transform: scale(1.05);
}

canvas {
    display: block;
    cursor: none; /* 게임 중에는 마우스 커서를 숨김 */
}

/* 게임 오버 모달 */
#game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#game-over.hidden {
    display: none;
}

.modal {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal h2 {
    font-size: 2.5rem;
    color: #c62828;
    margin-bottom: 20px;
}

#final-score {
    font-size: 3rem;
    margin-bottom: 30px;
}

#restart-btn {
    padding: 10px 30px;
    font-size: 1.2rem;
    background-color: #00796b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
