/* gcraftz/style.css */
* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    user-select: none;
}

body, html { 
    margin: 0; padding: 0; 
    width: 100%; height: 100%; 
    overflow: hidden; 
    background: #ffffff; /* Fundo branco para a página */
}

/* O Jogo */
#game-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1; 
}

/* Mira preta para contrastar com céu claro */
#crosshair {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: #000000; 
    font-size: 30px;
    pointer-events: none;
}

#inventoryMenu {
    display: none; /* Escondido por padrão */
    position: fixed;
    bottom: 80px; /* Acima dos botões de ação */
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

#inventoryMenu button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}

#btnInventory {
    background: #2ecc71;
    color: white;
    border: 2px solid #000;
}

/* Interface */
.ui {
    position: fixed;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999; 
    pointer-events: none;
}

/* BOTÕES QUADRADOS E BRANCOS */
.btn-ui {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9); /* Fundo branco semi-transparente */
    border: 3px solid #000000;           /* Borda preta grossa */
    color: #000000;                      /* Texto preto */
    border-radius: 0px;                  /* BORDA QUADRADA (0) */
    font-weight: bold;
    font-size: 18px;
    touch-action: none;
    box-shadow: 4px 4px 0px #000000;     /* Sombra rígida estilo retrô */
}

/* Efeito de clique (afunda o botão) */
.btn-ui:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000000;
}

.dpad { display: grid; grid-template-areas: ". w ." "a s d"; gap: 10px; }
.btn-move { width: 60px; height: 60px; }

.actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }

/* Botão de Pulo também quadrado */
.btn-jump { 
    width: 80px; 
    height: 80px; 
    border-radius: 0px !important; 
}

.btn-build { 
    padding: 12px 20px; 
}

/* Ajuste específico para o botão de apagar se você o tiver */
#btnRemove {
    background: #ffcccc !important; /* Vermelho claro quadrado */
}