/* CAISSES D'OBJETS « ? » (js/caisses-objets.js) — emplacement d'objet + mini-roulette (1 s, non bloquante).
   Zone réservée BAS-CENTRE, à droite de la barre d'XP : jamais au centre de l'écran (cf. js/popup-queue.js). */
#item-slot {
  position: fixed; z-index: 12;
  bottom: 12px; left: calc(50% + 228px);
  width: 58px; height: 58px; padding: 0;
  border-radius: 14px;
  border: 3px solid rgba(255, 216, 74, 0.85);
  background: rgba(22, 34, 48, 0.72);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
  font-family: inherit;
}
#item-slot.hidden { display: none; }
#item-slot .is-ico { font-size: 30px; line-height: 1; }
#item-slot .is-key {
  position: absolute; right: -6px; bottom: -6px;
  min-width: 20px; height: 20px; padding: 0 4px; border-radius: 6px;
  background: #ffd84a; color: #3a2508; font: bold 13px/20px sans-serif; text-align: center;
}
#item-slot .is-key:empty { display: none; }
/* vide : discret, un « ? » fantôme rappelle qu'on peut en ramasser */
#item-slot.is-empty { opacity: 0.45; border-color: rgba(255, 255, 255, 0.35); cursor: default; }
#item-slot.is-empty .is-ico::before { content: '?'; font: bold 26px sans-serif; color: rgba(255, 255, 255, 0.55); }
#item-slot.is-roll { border-color: #fff3b0; animation: is-shake 0.12s linear infinite; }
#item-slot.is-ready { border-color: #ffd84a; box-shadow: 0 0 14px rgba(255, 216, 74, 0.65), 0 3px 10px rgba(0, 0, 0, 0.35); }
#item-slot.is-pop { animation: is-pop 0.35s ease-out; }
@keyframes is-shake { 0% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } 100% { transform: rotate(-4deg); } }
@keyframes is-pop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* écrans étroits (PC fenêtré) : au-dessus de la barre d'XP plutôt qu'à côté */
@media (max-width: 760px) {
  #item-slot { left: auto; right: 12px; bottom: 76px; }
}
/* TACTILE : un vrai bouton au pouce droit, au-dessus de la colonne d'actions */
/* (position fine posée par CAISSES.dockTouch au-dessus de la colonne d'actions ; repli ci-dessous) */
body.vtouch #item-slot { left: auto; right: 14px; bottom: auto; top: 38%; width: 64px; height: 64px; }
body.vtouch #item-slot .is-ico { font-size: 34px; }
/* écran de mort / panneau plein écran : rien à utiliser */
body.pq-modal #item-slot.is-empty { display: none; }
