body {
    font-family: 'Inter', sans-serif;
    background-color: #333;
    color: #0f380f;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    touch-action: manipulation; /* Disable double-tap to zoom */
}

#gameboy-shell {
    width: 320px; /* Adjusted for typical phone width */
    height: 568px; /* Adjusted for typical phone portrait height */
    max-width: 90vw;
    max-height: 90vh;
    background-color: #8c8c8c; /* Classic GB gray */
    border-radius: 10px 10px 50px 10px;
    box-shadow: inset -3px -3px 0px #5a5a5a, inset 3px 3px 0px #c0c0c0, 5px 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

#game-screen {
    width: calc(100% - 20px);
    height: 45%;
    background-color: #9bbc0f; /* GB Green */
    border: 5px solid #0f380f; /* Dark border for screen */
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    image-rendering: pixelated; 
}

#status-bar {
    background-color: rgba(15, 56, 15, 0.1);
    padding: 5px;
    font-size: clamp(10px, 3vw, 12px); /* Responsive font size */
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #0f380f;
    color: #0f380f;
}

#pet-area {
    width: 100%;
    height: calc(100% - 30px); /* Adjust based on status bar height */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
}

#meatballPetImage {
    width: 64px; 
    height: 64px; 
    image-rendering: pixelated;
    position: absolute; 
    transition: transform 0.1s ease-out;
    z-index: 10;
}

.pet-face-eye {
    position: absolute;
    background-color: #0f380f;
    width: 8px;
    height: 12px;
    border-radius: 50%;
    z-index: 11;
}

.pet-face-mouth {
    position: absolute;
    background-color: #0f380f;
    width: 20px;
    height: 5px;
    border-radius: 3px 3px 10px 10px;
    z-index: 11;
}

.golden-meatball-icon {
    width: 40px;
    height: 40px;
    position: absolute;
    cursor: pointer;
    z-index: 20;
    image-rendering: pixelated;
    /* filter: drop-shadow(0 0 3px gold) hue-rotate(40deg) saturate(3) brightness(1.2); */ /* CSS filter for gold - can be heavy */
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.8; transform: scale(1); }
}

#gameCanvas {
    display: none; /* Hidden for now as pet is an img, display:none preferred over not in DOM */
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}


#controls {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center buttons vertically */
    align-items: center;
}

#action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 200px; 
}

#action-buttons button {
    background-color: #306230; 
    color: #cadc9f; 
    border: 2px solid #0f380f;
    border-radius: 8px;
    padding: 12px 10px;
    font-size: clamp(12px, 3.5vw, 14px);
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 2px 2px 0px #0f380f;
    transition: background-color 0.05s, transform 0.05s, box-shadow 0.05s;
    -webkit-tap-highlight-color: transparent;
}

#action-buttons button:active {
    background-color: #0f380f;
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #0f380f;
}

#food-shop-modal, #whack-a-mole-game {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 15px;
    background-color: #cadc9f;
    border: 3px solid #0f380f;
    border-radius: 8px;
    z-index: 100;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: #0f380f;
}

#food-shop-modal h3, #whack-a-mole-game h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0f380f;
}

#food-shop-modal button, #whack-a-mole-game button {
    display: block;
    width: calc(100% - 10px);
    margin: 5px auto;
    padding: 8px;
    background-color: #306230;
    color: #cadc9f;
    border: 2px solid #0f380f;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}
#food-shop-modal button.close-button, #whack-a-mole-game button.close-button {
    background-color: #8b0000;
    margin-top:10px;
}

.whack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 150px;
    height: 150px;
    margin: 10px auto;
}

.whack-hole {
    background-color: #0f380f; /* Dark green for holes */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
}

.whack-hole img {
    width: 80%;
    height: 80%;
    image-rendering: pixelated;
    display: none; /* Hidden by default */
}