body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Malgun Gothic', sans-serif;
    background-color: #87CEEB;
    /* Sky blue background */
    user-select: none;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    display: block;
}

#game-ui {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 10;
}

#title {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #ffb74d;
}

#instructions {
    font-size: 16px;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

#score-display {
    margin-top: 20px;
    font-size: 28px;
    font-weight: bold;
}

#hover-gauge {
    margin-top: 15px;
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    border-radius: 10px;
    overflow: hidden;
}

#hover-bar {
    width: 100%;
    height: 100%;
    background: #00e5ff;
    transition: width 0.1s linear, background-color 0.2s;
}

.hidden {
    display: none !important;
}

#game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 50;
}

#game-over h1 {
    font-size: 48px;
    color: #ef5350;
    margin-bottom: 10px;
}

#game-over p {
    font-size: 24px;
    margin-bottom: 30px;
}

button {
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    background: #ffb300;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
    color: #333;
}

button:hover {
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}