/* Culture Lab cabinet: shared by the landing page, Enter the Lab and Day in the Life
   (Faith, 13 Nov).

   Sizes are the original install (handoff) sizes everywhere (Faith, 13 Nov): no fitting
   to the window; the page may scroll a little on a laptop.

   The top banner is gone; the top strip reads "CULTURE LAB · …" (no wordmark, Faith 13 Nov).
   Back, Sound and Home (the way back to the website) are arcade buttons on the control panel. */

/* ---------- Control panel: Back and Sound arcade buttons ---------- */
.controls { display: flex !important; align-items: flex-start; }
.abtns { display: flex; gap: 18px; align-items: flex-start; }
.abtn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #FFF9F0;
  font: 800 13px/1.2 'Plus Jakarta Sans', Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  border-radius: 14px;
}
.abtn .cap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c);
  color: #311E19;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22);
  transition: transform .08s, box-shadow .08s;
}
.abtn .cap svg { width: 26px; height: 26px; }
.abtn .cap svg.i-home { width: 30px; height: 30px; } /* the house reads smaller than the arrow and speaker at the same size (Faith, 13 Nov) */
.abtn:hover .cap { filter: brightness(1.06); }
.abtn:active .cap { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22); }
.abtn:focus-visible { outline: 3px solid #F8D487; outline-offset: 4px; }
#sound .s-off, #sound[aria-pressed="true"] .s-on { display: block; }
#sound .s-on, #sound[aria-pressed="true"] .s-off { display: none; }
@media (max-width: 640px) {
  .controls { padding: 16px 14px 4px; }
}
@media (max-width: 400px) {
  .controls .stick { display: none; }   /* small phones: room for the three buttons */
  .controls { justify-content: center; }
}

/* ---------- Phone tapping (Faith, 13 Nov) ----------
   Game buttons and play areas: no text selection, no long-press menu, no double-tap zoom,
   so fast taps all register. Text elsewhere (results, explanations) stays selectable. */
.cab :where(button, a, [role="button"], .go, .abtn),
.cab :where(#stage, .stage, .catch, .belt, .bench, .tray, .machine, .keys, .cycler, .cbtns, .dbs, .tixgrid, .bus, .controls) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
/* the food-catch area is dragged sideways: no page panning or zoom while playing */
.cab .catch { touch-action: none; }
.cab :where(input, textarea) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }


/* ---------- Result bar above confetti (Faith, 13 Nov) ----------
   Confetti falls behind the result bar, so the message and Next stay readable. */
.screen .result.on { position: relative; z-index: 7; background: #1B120F; }
