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

:root {
    --sky-blue: #87CEEB;
    --sky-blue-dark: #6BB6FF;
    --grass-green: #7CB342;
    --grass-green-dark: #558B2F;
    --dirt-brown: #8D6E63;
    --cloud-white: #FFFFFF;
    --text-yellow: #FFD700;
    --text-outline: #000000;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    overflow: hidden;
    position: relative;
    height: 100vh;
    width: 100vw;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Game UI - Centered Title */
.game-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    font-family: 'Courier New', monospace;
    color: var(--text-yellow);
    text-shadow: 
        3px 3px 0px var(--text-outline),
        -3px -3px 0px var(--text-outline),
        3px -3px 0px var(--text-outline),
        -3px 3px 0px var(--text-outline);
    pointer-events: none;
    text-align: center;
}

.title {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 4px;
}

/* Game World */
.game-world {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sky */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(
        to bottom,
        var(--sky-blue-dark) 0%,
        var(--sky-blue) 50%,
        var(--sky-blue) 100%
    );
}

/* Clouds */
.clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    pointer-events: none;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: var(--cloud-white);
    border-radius: 0;
    image-rendering: pixelated;
}

/* Ground */
.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(
        to bottom,
        var(--grass-green) 0%,
        var(--grass-green) 85%,
        var(--dirt-brown) 85%,
        var(--dirt-brown) 100%
    );
    border-top: 4px solid var(--grass-green-dark);
}

/* Barn */
.barn {
    position: absolute;
    bottom: 0;
    left: 10%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    z-index: 5;
}

/* Trees */
.trees {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    pointer-events: none;
    overflow: visible;
    z-index: 5;
}

.tree {
    position: absolute;
    bottom: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.barn-part,
.tree-part {
    position: absolute;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 0;
}

/* Animals Container */
.animals-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

/* Animal Base Styles */
.animal {
    position: absolute;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    will-change: transform, left, bottom;
}

.animal-part {
    position: absolute;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 32px;
    }
}
