/* JBJ Tree Decorator */

.jbj-tree-game {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.jbj-tree-area {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.jbj-tree-bg {
  width: 100%;
  height: auto;
  display: block;
}

.jbj-placed {
  position: absolute;
  width: var(--jbj-placed-size, 72px);
  height: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.jbj-drawer {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}

.jbj-drawer-inner {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px;
  justify-content: center;
}

.jbj-drawer-inner::-webkit-scrollbar {
  height: 10px;
}

.jbj-drawer-item {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.jbj-controls {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.jbj-btn {
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.jbj-btn:active {
  transform: translateY(1px);
}
