
body { user-select: none; margin:0; background:#000; overflow:hidden; font-family:Courier New, monospace; }
canvas { display:block; image-rendering:pixelated; }

#ui, .ui, button, label, .slot, .inventory-slot, #hotbar, #inventory, #chestUI, #craftTorche, #playerPos, #volumeControl, #essence-slot {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#hotbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    pointer-events: auto;
}
.slot {
    width: 56px; height: 56px; background: rgba(0,0,0,0.7);
    border: 3px solid #555; display: grid; grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto; font-size: 26px; position: relative;
}
.slot.active { border-color: #0ff; box-shadow: 0 0 10px #0ff; }
.slot .icon { grid-column: 1 / 3; grid-row: 1 / 3; display: flex; justify-content: center; align-items: center; }
.slot .key { position: absolute; top: 2px; left: 4px; font-size: 11px; opacity: 0.7; }
.slot .count { position: absolute; bottom: 4px; right: 4px; min-width: 18px; height: 18px;
    padding: 0 4px; background: #0ff; color: #000; font-size: 12px; font-weight: bold;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; }

#playerPos { position: absolute; top: 20px; right: 20px; color: #0ff; background: rgba(0,0,0,0.6);
    padding: 8px 12px; border: 2px solid #555; border-radius: 8px; font-family: monospace;
    font-size: 14px; text-align: right; pointer-events: none; }
#playerPos span { display: block; }

#craftTorche {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 4px 8px;          
    background: #111;
    border: 2px solid #0ff;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;           
    color: #0ff;
    user-select: none;
    white-space: nowrap;       
    line-height: 1;
    min-width: 40px;           
    height: 24px;              
    transition: all 0.2s ease;
}
#craftTorche:hover {
    background: #0aa;
    color: #fff;
    transform: scale(1.05);
}

#inventory {
    position: absolute; top: 50%; right: 20px; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 10px; pointer-events: auto; z-index: 1000;
}
.inventory-slot {
    width: 50px; height: 50px; background: rgba(0,0,0,0.7); border: 3px solid #555;
    display: flex; justify-content: center; align-items: center; font-size: 24px; position: relative;
    border-radius: 6px;
}
.inventory-slot .count {
    position: absolute; bottom: 2px; right: 2px; min-width: 16px; height: 16px;
    padding: 0 3px; background: #0ff; color: #000; font-size: 12px; font-weight: bold;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
}

#debugMinimap {
    position: absolute; bottom: 20px; left: 20px; border: 2px solid #0ff; background: rgba(0, 0, 0, 0.8); image-rendering: pixelated; z-index: 1000;
}

#essence-slot {
    top: 120px;
    margin-left: 20px;
    border-color: #f0f;
}

#audioActivator {
    position: fixed; top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex; 
    justify-content: center;
    align-items: center;
    color: #0ff; 
    font-family: monospace;
    font-size: 24px;
    cursor: pointer;
}

#volumeControl {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 1000;
}

#ColonG {
    background:rgba(0,0,0,0.9);
    border:2px solid #0ff;
    border-radius:8px;
    padding:15px;
    width:240px;
}

#ColonD {
    background:rgba(0,0,0,0.9);
    border:2px solid #0ff;
    border-radius:8px;
    padding:15px;
    width:440px;
}

#playerInventoryGrid {
    display:grid;
    grid-template-columns:repeat(4, 50px);
    gap:6px;
}

#chestGrid {
    display:grid;
    grid-template-columns:repeat(8, 50px);
    gap:6px;
}

#Titre_Colon_D {
    color:#0ff;
    font-size:14px;
    margin-bottom:10px;
    text-align:center;
}

#Titre_Colon_G {
    color:#0ff;
    font-size:14px;
    margin-bottom:10px;
    text-align:center;
}
