body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    background-color: #000;
}

#root {
    width: 100%;
    height: 100%;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
}

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.crosshair::before, .crosshair::after {
    content: '';
    position: absolute;
    background: white;
    mix-blend-mode: difference;
}

.crosshair::before {
    width: 2px;
    height: 20px;
}

.crosshair::after {
    width: 20px;
    height: 2px;
}

.hotbar {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px;
    border: 4px solid #333;
    pointer-events: auto;
    margin-bottom: 20px;
}

.hotbar-slot {
    width: 50px;
    height: 50px;
    background: #888;
    border: 4px solid #555;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}

.hotbar-slot.active {
    border-color: #fff;
    box-shadow: 0 0 10px #fff;
    z-index: 1;
}

.hotbar-slot img {
    width: 80%;
    height: 80%;
    image-rendering: pixelated;
}

.instructions {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none;
}

.instructions h3 {
    margin-top: 0;
    color: #4CAF50;
}

.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
}

.loading-bar {
    width: 300px;
    height: 20px;
    border: 2px solid white;
    margin-top: 20px;
}

.loading-progress {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s;
}
