body {
    margin: 0;
    padding: 0;
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background-color: #2b2b2b;
    /* 다소 어두운 배경 (집중용) */
    color: white;
    overflow: hidden;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #5d4037, #212121);
    transition: background 0.3s;
}

#game-container.cool {
    background: radial-gradient(circle at 50% 50%, #4dd0e1, #e0f7fa);
}

/* HUD */
#hud {
    position: absolute;
    top: 20px;
    display: flex;
    gap: 40px;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.hud-item {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 12px;
    border: 3px solid #757575;
}

.timer {
    color: #ffeb3b;
}

.thermometer {
    color: #ff5252;
    transition: color 0.2s;
}

/* Temp Bar */
#temp-bar-container {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 400px;
    background: rgba(0, 0, 0, 0.7);
    border: 4px solid #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    /* 막대가 아래에서 차오름 */
}

#temp-bar {
    width: 100%;
    height: 100%;
    /* starts at 100% (100°C) */
    background: linear-gradient(to top, #03a9f4, #8bc34a, #ffeb3b, #ff5252);
    transition: height 0.1s;
}

/* Character */
#kirby-container {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

#kirby-body {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    /* Default is hot */
    background: #ff1744;
    box-shadow: 0 0 50px #ff1744, inset -20px -20px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.05s, background 0.1s, box-shadow 0.1s;
    animation: throb 0.5s infinite alternate;
    /* 두근두근 */
}

#kirby-body:active {
    transform: scale(0.95);
}

/* Eyes, mouth, blushes */
.eye {
    position: absolute;
    width: 25px;
    height: 50px;
    background: black;
    border-radius: 50%;
    top: 80px;
}

.eye.left {
    left: 90px;
}

.eye.right {
    right: 90px;
}

.blush {
    position: absolute;
    width: 50px;
    height: 25px;
    background: #d50000;
    border-radius: 50%;
    top: 120px;
    opacity: 0.8;
}

.blush.left {
    left: 30px;
}

.blush.right {
    right: 30px;
}

.mouthsweat {
    position: absolute;
    top: 130px;
    left: 125px;
    font-size: 50px;
    line-height: 1;
}

#click-instruction {
    font-size: 24px;
    font-weight: bold;
    color: #ffd54f;
    text-shadow: 2px 2px 4px black;
    animation: flash 1s infinite alternate;
}

/* Animations */
@keyframes throb {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

@keyframes flash {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
    pointer-events: auto;
}

.screen.active {
    display: flex;
}

.screen h1 {
    font-size: 50px;
    color: #ff5252;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px black;
}

.screen p {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 30px;
    font-size: 24px;
    font-weight: bold;
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.1s;
}

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

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

/* Confetti */
#confetti-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 30;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: fall-spin 2s linear forwards;
}

@keyframes fall-spin {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(600px) rotate(360deg);
        opacity: 0;
    }
}