* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    overflow: hidden;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#game-container {
    zoom: 2;
    width: 100%; 
    height: 100%; 
    transform-origin: top left;
}

#main-area {
    flex: 1;
    height: 260px;
    position: relative;
    overflow: hidden;
}

#main-area {
    height: 15vh; 
    min-height: 260px;
    max-height: 600px;
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/backgrounds/default-room.png');
    background-size: cover;
    background-position: center;
}

#pet-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 128px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    will-change: transform;
    transform-origin: center center;
}

#egg-sprite, #pet-sprite {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
    cursor: pointer;
}

#status-emoji {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    z-index: 5;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#action-emoji {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 28px;
    z-index: 6;
    pointer-events: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hat-canvas {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 64px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    
}

#effects-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.effect-particle {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.modal.hidden {
    display: none !important;
}

.modal:not(.hidden) {
    display: flex !important;
}
