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

body {
    overflow: hidden;
    background: #1a2a2e;
    font-family: 'Press Start 2P', monospace;
    cursor: default;
}

#scene-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#scene-container canvas {
    display: block;
}

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-family: monospace;
    font-weight: 100;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
    display: none;
    line-height: 1;
    opacity: 0.85;
}

#hotbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 2px;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    padding: 3px;
    border: 2px solid rgba(255,255,255,0.15);
    image-rendering: pixelated;
}

.hotbar-slot {
    width: 44px;
    height: 44px;
    background: rgba(80,80,80,0.6);
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    image-rendering: pixelated;
}

.hotbar-slot.selected {
    border-color: #eee;
    background: rgba(120,120,120,0.7);
}

.slot-canvas {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.slot-label {
    position: absolute;
    bottom: 1px;
    right: 2px;
    font-size: 6px;
    color: rgba(255,255,255,0.5);
    font-family: 'Press Start 2P', monospace;
}

#debug-info {
    position: fixed;
    top: 8px;
    left: 8px;
    color: white;
    font-size: 8px;
    font-family: 'Press Start 2P', monospace;
    z-index: 10;
    display: none;
    text-shadow: 1px 1px 0 #000;
    line-height: 1.8;
}

#start-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 18, 20, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
}

#start-content {
    text-align: center;
    color: #c0c0c0;
}

#title {
    font-size: 48px;
    color: #5abf35;
    text-shadow: 4px 4px 0 #2a5f18, -1px -1px 0 #000;
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.82; }
}

#subtitle {
    font-size: 14px;
    color: #87AEBC;
    margin-bottom: 40px;
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#controls-info {
    font-size: 8px;
    line-height: 2.4;
    color: #607880;
}

#pause-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,18,20,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

#pause-content {
    text-align: center;
}

#pause-content h2 {
    color: #87AEBC;
    font-size: 24px;
    margin-bottom: 30px;
    font-family: 'Press Start 2P', monospace;
}

#pause-content button {
    display: block;
    margin: 10px auto;
    padding: 12px 32px;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    background: #3a5a3a;
    color: #c0d0c0;
    border: 2px solid #5abf35;
    cursor: pointer;
    min-width: 220px;
    transition: background 0.1s;
}

#pause-content button:hover {
    background: #4a7a4a;
    color: #fff;
}

#footer-bar {
    position: fixed;
    bottom: 2px;
    right: 8px;
    z-index: 10;
}

#footer-bar a {
    color: rgba(135,174,188,0.35);
    font-size: 7px;
    font-family: 'Press Start 2P', monospace;
    text-decoration: none;
}

#footer-bar a:hover {
    color: rgba(135,174,188,0.7);
}