body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4e8d3; /* Light background */
    font-family: 'Press Start 2P', cursive; /* A pixel art style font */
    color: #4a2c2a; /* Dark brown text */
    text-align: center;
    overflow: hidden; /* Prevent scrollbars from bounce effects */
}

@font-face {
    font-family: 'Press Start 2P';
    src: url('https://fonts.gstatic.com/s/pressstart2p/v15/8RejxPjGaWaLUW0--gXuGnXGU-k4G_Y87lFp-V3p.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

.game-container {
    background-color: #d2b48c; /* Sandy brown for the game area */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 5px solid #8b4513; /* Saddle brown border */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

h1 {
    color: #6a3e2e; /* Darker brown for title */
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px #a0522d; /* Sienna shadow */
}

.chocolate-display {
    font-size: 1.8em;
    color: #8b4513;
    background-color: #ffe4b5; /* Moccasin background */
    padding: 10px 20px;
    border-radius: 8px;
    border: 3px solid #a0522d;
    min-width: 250px;
}

.clickable {
    width: 250px;
    height: auto;
    cursor: pointer;
    border: 5px solid #a0522d;
    border-radius: 10px;
    transition: transform 0.1s ease-out;
    image-rendering: pixelated; /* Ensure pixel art remains sharp */
}

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

.chocolate-pop {
    position: absolute;
    color: #4CAF50; /* Green for positive gain */
    font-size: 1.5em;
    font-weight: bold;
    opacity: 0;
    animation: fadeOutUp 1s forwards;
    pointer-events: none; /* Make sure it doesn't block clicks */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}

.upgrades-container {
    margin-top: 20px;
    color: #8b4513;
    font-size: 1.2em;
}

