* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

body {
    font-family: 'Press Start 2P', cursive;
    overflow: hidden;
    background: #1a1a1a;
}

.font-pixel {
    font-family: 'Press Start 2P', cursive;
}

.font-serif {
    font-family: 'Merriweather', serif;
}

.pixel-title {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.6));
}

.minecraft-box {
    background: rgba(0, 0, 0, 0.95);
    border: 4px solid #8b4513;
    border-style: solid;
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.2),
        inset -2px -2px 0 rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(255, 107, 53, 0.4);
    image-rendering: pixelated;
}

.minecraft-stat {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #654321;
    padding: 0.5rem;
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.minecraft-stat:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5),
        0 4px 15px rgba(255, 107, 53, 0.4);
}

.hearts-container {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.heart-full, .heart-empty {
    font-size: 14px;
    line-height: 1;
}

.heart-full {
    color: #ff0000;
    text-shadow: 1px 1px 0 #000;
}

.heart-empty {
    color: #444;
    text-shadow: 1px 1px 0 #000;
}

.water-full {
    color: #4a9eff;
    text-shadow: 1px 1px 0 #000;
}

.water-empty {
    color: #444;
    text-shadow: 1px 1px 0 #000;
}

.food-full {
    color: #ff8c42;
    text-shadow: 1px 1px 0 #000;
}

.food-empty {
    color: #444;
    text-shadow: 1px 1px 0 #000;
}

.hope-full {
    color: #2d5016;
    text-shadow: 1px 1px 0 #000;
}

.hope-empty {
    color: #444;
    text-shadow: 1px 1px 0 #000;
}

.minecraft-hotbar {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.9);
    border: 4px solid #8b4513;
    padding: 6px;
    box-shadow: 
        inset 2px 2px 0 rgba(255, 255, 255, 0.2),
        inset -2px -2px 0 rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.8);
}

.hotbar-slot {
    width: 54px;
    height: 54px;
    background: rgba(139, 69, 19, 0.3);
    border: 3px solid #654321;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.1),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5);
}

.minecraft-button {
    background: #654321;
    border: 3px solid #8b4513;
    box-shadow: 
        inset 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
}

.minecraft-button:hover {
    background: #8b4513;
    border-color: #ff6b35;
    transform: translateY(-1px);
}

.minecraft-button:active {
    transform: translateY(1px);
    box-shadow: 
        inset -1px -1px 0 rgba(255, 255, 255, 0.2),
        inset 1px 1px 0 rgba(0, 0, 0, 0.5);
}

#scene-container {
    width: 100vw;
    height: 100vh;
}

#scene-container canvas {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border: 2px solid #654321;
}

::-webkit-scrollbar-thumb {
    background: #8b4513;
    border: 2px solid #654321;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b35;
}

/* Pixel perfect rendering */
canvas, img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Button transitions */
button {
    transition: all 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(1px);
}

/* Responsive text */
@media (max-width: 768px) {
    .font-pixel {
        font-size: 0.6rem;
    }
    
    .pixel-title {
        font-size: 1rem !important;
    }
    
    .hotbar-slot {
        width: 44px;
        height: 44px;
    }
}