/* Hotbar gótica (rodapé do jogo): quadradinhos quase pretos, linha fina de ouro velho, item na mão em vermelho escuro.
   Sem emoji, sem imagem desenhada: o ícone é a foto do modelo em cubos (js/icones.js). */
#mochila { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; flex-wrap: nowrap; justify-content: center; width: max-content; max-width: calc(100vw - 16px); z-index: 4; }
.slot { --q: clamp(32px, calc((100vw - 52px) / 8), 58px);
        position: relative; box-sizing: border-box; width: var(--q); height: var(--q); padding: 0; flex: none;
        background: rgba(8, 7, 9, 0.9); color: var(--texto); border: 1px solid #6e5a2c; border-radius: 0; font-family: Georgia, 'Times New Roman', serif;
        box-shadow: inset 0 0 0 1px #000, inset 0 0 12px rgba(0, 0, 0, 0.75); cursor: pointer; display: block;
        -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.slot:hover { border-color: var(--ouro); }
.slot .ic { position: absolute; left: 2px; top: 2px; width: calc(100% - 4px); height: calc(100% - 7px); object-fit: contain; pointer-events: none; }
.slot .n { position: absolute; top: 1px; left: 3px; font-size: 9px; line-height: 1; color: var(--ouro); opacity: 0.55; pointer-events: none; }
.slot .q { position: absolute; right: 3px; bottom: 5px; font-size: 11px; line-height: 1; color: #efe6cf; text-shadow: 0 1px 2px #000, 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
/* espaço do traço de durabilidade: 3 px na base, vazio até o item ter durabilidade */
.slot .dur { position: absolute; left: 3px; right: 3px; bottom: 2px; height: 2px; pointer-events: none; }
.slot .dur.tem { background: #2a2118; }
.slot .dur i { display: block; height: 100%; width: 0; background: #b8995a; }
.slot .dur.baixa i { background: #b8322f; }
.slot .legenda { position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); white-space: nowrap; font-size: 11px; letter-spacing: 1px; padding: 2px 8px;
                 background: rgba(8, 7, 9, 0.92); border-top: 1px solid var(--ouro); border-bottom: 1px solid var(--ouro); color: var(--texto); pointer-events: none; display: none; z-index: 2; }
.slot:first-child .legenda { left: 0; transform: none; } .slot:last-child .legenda { left: auto; right: 0; transform: none; }
.slot.mao .legenda { display: block; }
@media (hover: hover) { .slot:hover .legenda { display: block; } .slot:not(.mao):hover { z-index: 3; } }
.slot.vazio { opacity: 0.45; cursor: default; }
.slot.vazio:hover { border-color: #6e5a2c; }
.slot.mao { background: rgba(94, 20, 24, 0.88); border-color: var(--ouro); box-shadow: inset 0 0 0 1px #000, inset 0 0 14px rgba(150, 18, 26, 0.55), 0 0 0 1px rgba(94, 20, 24, 0.9); }
.slot.mao .n { opacity: 0.9; }
.slot.ativo { border-color: var(--ouro); box-shadow: inset 0 0 0 1px var(--ouro), inset 0 0 12px rgba(0, 0, 0, 0.75); }
.slot.missao { border-color: #8a7a3a; }
/* ícone pequeno nas listas do vault e do rádio */
.rot-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rot-item .ic-lista { width: 28px; height: 28px; flex: none; object-fit: contain; }
.rot-item .dur-baixa { color: #b8322f; }
@media (max-width: 640px) { .slot .n { font-size: 8px; } .slot .q { font-size: 10px; right: 2px; } }
/* jogar fora (destrói o item): botãozinho no canto de cada casa cheia; dois cliques */
.slot .jogar-fora { position: absolute; right: 1px; top: 1px; z-index: 2; min-width: 14px; padding: 0 3px; font-size: 10px; line-height: 14px; text-align: center; color: #efe6cf; background: rgba(40, 10, 10, 0.75); border-radius: 3px; cursor: pointer; opacity: 0.6; }
.slot .jogar-fora:hover { opacity: 1; background: #7a1f1f; }

/* barras em pé do barulho e do voo: public/css/oficina-hud.css (#medidores) */
.slot.quebrado .ic { filter: grayscale(1) brightness(0.55); }
/* item que acabou (arma, ferramenta, hoverboard, jetpack): o slot pisca vermelho 4 vezes e fica com a borda vermelha
   (pisca finito: nada roda com o jogo parado) */
.slot.quebrado { border-color: #b8322f; animation: slot-quebrado 0.5s steps(1, end) 4; }
@keyframes slot-quebrado { 0% { background: rgba(150, 18, 26, 0.85); } 50% { background: rgba(8, 7, 9, 0.9); } }
@media (prefers-reduced-motion: reduce) { .slot.quebrado { animation: none; } }

/* estante de troféus do bunker (painel do vault) */
.estante { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.trofeu { width: 64px; padding: 4px; border: 1px solid #3a352b; background: #14110d; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.trofeu .ic-trofeu { width: 44px; height: 44px; object-fit: contain; }
.trofeu-leg { font-size: 10px; color: #6f6859; }
