body {
    margin: 0;
    padding: 0;
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background-color: #fff3e0;
    color: #333;
    overflow: hidden;
    user-select: none;
}

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

.bg-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 300px;
    font-weight: bold;
    color: rgba(255, 152, 0, 0.05);
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
}

#title-text {
    margin-top: 20px;
    font-size: 36px;
    color: #d84315;
    text-shadow: 2px 2px 0px #fff;
    z-index: 10;
}

/* Palette Area */
#palette-area {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 3px solid #ffcc80;
    z-index: 10;
}

.ingredient {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    cursor: grab;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), inset -5px -5px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    user-select: none;
}

.ingredient:hover {
    transform: scale(1.1);
}

.ingredient:active {
    cursor: grabbing;
    transform: scale(0.9);
}

/* specific ingredients */
.kirby-fishcake {
    background: #f8bbd0;
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.bokchoy {
    background: #66bb6a;
    border-radius: 10px 40px 10px 40px;
}

.mushroom {
    background: #ffe082;
    border-radius: 10px 10px 0 0;
    width: 60px;
    height: 90px;
}

.noodle {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #ccc;
    border-radius: 30px;
    width: 100px;
    height: 40px;
    color: #333;
    text-shadow: none;
}

.beef {
    background: #d32f2f;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    width: 90px;
    height: 60px;
}

/* Kirby Fishcake face */
.kirby-fishcake {
    position: relative;
    color: transparent;
    text-shadow: none;
}

.kf-eye {
    position: absolute;
    top: 25px;
    width: 6px;
    height: 18px;
    background: #000;
    border-radius: 50%;
}

.kf-eye.left {
    left: 22px;
}

.kf-eye.right {
    right: 22px;
}

.kf-blush {
    position: absolute;
    top: 35px;
    width: 12px;
    height: 6px;
    background: #f50057;
    border-radius: 50%;
    opacity: 0.7;
}

.kf-blush.left {
    left: 10px;
}

.kf-blush.right {
    right: 10px;
}

.kf-mouth {
    position: absolute;
    top: 40px;
    left: 35px;
    width: 10px;
    height: 8px;
    background: #d50000;
    border-radius: 0 0 10px 10px;
}


/* Pot Area */
#pot-area {
    position: relative;
    margin-top: 40px;
    width: 600px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pot-back {
    position: absolute;
    width: 500px;
    height: 250px;
    background: #37474f;
    /* dark pot back */
    border-radius: 50%;
    top: 20px;
    box-shadow: inset 0 20px 30px rgba(0, 0, 0, 0.5);
}

#broth {
    position: absolute;
    width: 460px;
    height: 210px;
    background: #ffe082;
    /* Default unspicy broth */
    border-radius: 50%;
    top: 45px;
    opacity: 0.9;
    transition: background-color 1s;
    overflow: hidden;
    /* for bubbles */
}

/* Bubbles inside broth */
#broth .bubble {
    position: absolute;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: boilUp 1s infinite ease-in;
}

@keyframes boilUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-200px) scale(1.5);
        opacity: 0;
    }
}

#pot-contents {
    position: absolute;
    width: 440px;
    height: 200px;
    top: 50px;
    border-radius: 50%;
    /* We'll drop elements here absolutely positioned */
}

.dropped-item {
    position: absolute;
    /* initial scale down logic handled in js */
}

#pot-front {
    position: absolute;
    width: 500px;
    height: 125px;
    background: #546e7a;
    /* lighter pot front */
    border-radius: 0 0 250px 250px;
    bottom: 25px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3), inset 0 -10px 20px rgba(255, 255, 255, 0.1);
    z-index: 10;
    pointer-events: none;
}


/* Controls & Spice Area */
#controls-area {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.hidden {
    display: none !important;
}

#spice-selector h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
}

.spice-btns {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

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

.btn-action {
    padding: 15px 40px;
    font-size: 24px;
    background: #d84315;
    border-radius: 20px;
}


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

.confetti {
    position: absolute;
    width: 15px;
    height: 15px;
    animation: fall 3s linear forwards;
}

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

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}