/* Uses theme variables */
body { background: var(--bg); color: var(--text); }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 30px var(--glow); }

.inventory {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.stash {
  position: relative;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: radial-gradient(120% 120% at 50% 10%, rgba(255,255,255,.06), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6));
}

.grid {
  position: relative;
  display: grid;
  gap: 4px;
  background: rgba(0,0,0,.25);
  padding: 6px;
  border-radius: 10px;
}

.slot {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.35);
  border-radius: 8px;
}

.item {
  position: absolute;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 8px 18px rgba(0,0,0,.5);
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.stack {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.9);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.10);
}