/* Barista — the counter is one canvas; under it sit the five hold-to-pour pads, and Serve lives in the dock. */

.ba-col { display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 620px; margin: 0 auto; direction: ltr; }
.ba-scene { position: relative; flex: 1 1 auto; min-height: 150px; margin: 4px 10px 0; border-radius: 18px; overflow: hidden;
  background: var(--lapis-deep); box-shadow: 0 0 0 2px var(--hairline); }
.ba-canvas { display: block; -webkit-user-select: none; user-select: none; }

.ba-pads { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 8px 10px 0; }
.ba-pad { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 62px; padding: 6px 2px 5px; border: 0; border-radius: 16px; background: var(--lapis-raise); color: var(--parchment);
  box-shadow: inset 0 0 0 2px var(--hairline), 0 4px 0 var(--lapis-deep); font: 700 0.72rem/1.1 inherit; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ba-pad svg { width: 30px; height: 30px; pointer-events: none; }
.ba-pad span { pointer-events: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-pad.is-on { transform: translateY(3px); background: var(--ultramarine); box-shadow: inset 0 0 0 2px var(--gold), 0 1px 0 var(--lapis-deep); }
.ba-pad.is-next { box-shadow: inset 0 0 0 3px var(--gold), 0 4px 0 var(--lapis-deep); animation: ba-next 0.9s ease-in-out infinite; }
.ba-pad.is-next.is-on { animation: none; }
.ba-pad:focus-visible { outline: 3px solid var(--parchment); outline-offset: 2px; }
@keyframes ba-next { 50% { background: var(--ultramarine); } }
@media (prefers-reduced-motion: reduce) { .ba-pad.is-next { animation: none; } }

.ba-tip { flex: none; min-width: 0; }
.ba-serve { flex: 1 1 auto; max-width: 340px; }

@media (max-width: 400px) { .ba-pad { font-size: 0.66rem; } }
@media (max-width: 340px) { .ba-pads { gap: 4px; padding: 8px 6px 0; } .ba-pad { font-size: 0.6rem; } }
@media (max-height: 600px) {
  .ba-pad { min-height: 52px; border-radius: 13px; }
  .ba-pad svg { width: 24px; height: 24px; }
}
@media (min-width: 700px) {
  .ba-pad { min-height: 72px; font-size: 0.86rem; }
  .ba-pad svg { width: 34px; height: 34px; }
}
