/* Galago — 'buildnum' place-value packing (World 4). */

.buildnum {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.bn-cols {
  display: flex;
  gap: clamp(10px, 3vw, 26px);
  align-items: flex-end;
}
.bn-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.bn-label {
  font: 800 13px "Nunito", system-ui;
  color: #fff6e9;
  text-shadow: 0 1px 2px rgba(60, 30, 10, 0.4);
}
.bn-stack {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  min-height: 118px;
  width: 46px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(60, 40, 20, 0.28);
}
/* hundreds = big flat square, tens = tall rod, ones = small berry */
.bn-block { border-radius: 3px; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.2); }
.bn-block.bn-hundred { width: 34px; height: 11px; background: #6c63c4; }
.bn-block.bn-ten { width: 11px; height: 11px; background: #4caf6e; border-radius: 50%; align-self: center; }
.bn-block.bn-one { width: 9px; height: 9px; border-radius: 50%; background: #f0883e; }
.bn-col:nth-child(2) .bn-stack { flex-direction: column-reverse; }

.bn-steppers {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bn-step {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 12px;
  font: 800 22px "Nunito", system-ui;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at 38% 30%, #ffd089, #c97e3c 75%);
  box-shadow: 0 4px 10px rgba(60, 30, 10, 0.28);
}
.bn-step:active { transform: scale(0.92); }
.bn-count {
  min-width: 28px;
  text-align: center;
  font: 800 22px "Nunito", system-ui;
  color: #fff6e9;
}

.bn-readout {
  font: 800 clamp(30px, 7vw, 46px) "Nunito", system-ui;
  color: #fff6e9;
  text-shadow: 0 2px 0 rgba(120, 60, 20, 0.45), 0 0 18px rgba(255, 200, 120, 0.35);
  background: rgba(60, 40, 20, 0.35);
  padding: 2px 22px;
  border-radius: 999px;
  min-width: 90px;
  text-align: center;
}

.bn-pack {
  font: 800 18px "Nunito", system-ui;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 30px;
  cursor: pointer;
  background: radial-gradient(circle at 38% 30%, #8bd6a3, #4caf6e 72%);
  box-shadow: 0 6px 16px rgba(20, 90, 50, 0.32);
}
.bn-pack:active { transform: scale(0.97); }
.bn-pack:disabled { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .bn-step:active, .bn-pack:active { transform: none; }
}
