.bb-wrap { position: relative; }
#bb-canvas {
  width: 100%;
  height: auto;
  display: block;
  background:
    linear-gradient(180deg, #1c2428 0%, #121719 100%);
  border-radius: 12px;
  touch-action: none;
}
.bb-legend {
  position: absolute;
  top: .6rem; left: .6rem;
  background: rgba(0,0,0,.55);
  color: var(--chalk-dim);
  border: 1px dashed var(--chalk-dim);
  border-radius: 10px;
  padding: .4rem .7rem;
  font-family: 'Patrick Hand', sans-serif;
  font-size: .95rem;
  line-height: 1.4;
}
.bb-legend strong { color: var(--accent); font-family: 'Caveat', cursive; font-size: 1.2rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.dot--left  { background: var(--accent-3); }
.dot--right { background: var(--accent-2); }

.bb-tray {
  margin-top: 1rem;
  text-align: center;
}
.bb-tray__title {
  margin: .25rem 0;
  color: var(--chalk-dim);
  font-size: 1.1rem;
}
.bb-weights {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.bb-weight {
  background: linear-gradient(180deg, #f7f3e8, #d7cfb4);
  color: var(--slate-900);
  border: none;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.4rem;
  padding: .4rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 0 rgba(0,0,0,.3);
  cursor: pointer;
  touch-action: manipulation;
}
.bb-weight[aria-pressed="true"] {
  background: var(--accent);
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0,0,0,.3);
}

.bb-controls {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
