/* BBSoB PITCH ZOOM (POC 1): the panel and the zoom states. The pitch layers themselves are
   transformed inline by bbsob-pitch-zoom.js; at 100 % nothing here changes the pitch. */
.bbsob-zoom-viewport{touch-action:pan-x pan-y;}
.bbsob-zoom-viewport.bbsob-panning,.bbsob-zoom-viewport.bbsob-panning *{cursor:grabbing!important;}
.bbsob-zoom-ctl{
  position:absolute;right:1.2%;bottom:1.6%;z-index:95; /* above the Human Roll overlay: zoom is view-only */
  display:flex;align-items:center;gap:3px;padding:3px;
  line-height:1;border:1px solid rgba(242,223,170,.6);border-radius:7px;
  background:rgba(20,15,11,.86);box-shadow:0 2px 7px rgba(0,0,0,.45);
  font:800 11px/1 Arial,sans-serif;letter-spacing:.04em;color:#f2dfaa;
  user-select:none;-webkit-user-select:none;touch-action:manipulation;
}
.bbsob-zoom-ctl.pos-bottom-center{right:auto;left:50%;transform:translateX(-50%);}
.bbsob-zoom-ctl button{
  min-width:24px;height:24px;padding:0 6px;border:1px solid rgba(242,223,170,.55);border-radius:5px;
  background:#31261c;color:#f2dfaa;font:900 13px/1 Arial,sans-serif;cursor:pointer;
}
.bbsob-zoom-ctl button.reset{font-size:10px;letter-spacing:.06em;}
.bbsob-zoom-ctl button:disabled{opacity:.38;cursor:default;}
.bbsob-zoom-ctl button:not(:disabled):hover,.bbsob-zoom-ctl button:focus-visible{border-color:#fff1b6;outline:none;background:#4a3a2a;}
.bbsob-zoom-ctl output{min-width:42px;text-align:center;}
@media (max-width:700px){
  .bbsob-zoom-ctl{gap:2px;padding:2px;font-size:10px;}
  .bbsob-zoom-ctl button{min-width:26px;height:26px;padding:0 5px;}
  .bbsob-zoom-ctl output{min-width:36px;}
}
/* SoB Pitch: the small state chooser sits on a token inside the grid layer; keep it at its
   normal size when the pitch is enlarged. */
.bbsob-zoomed .state-chooser{transform:translateX(-50%) scale(var(--bbsob-zoom-inv,1));transform-origin:50% 100%;}
.bbsob-zoom-ctl .short{display:none;}
/* compact panel for a small pitch (e.g. SoB Pitch on a phone held upright) */
.bbsob-zoom-ctl.compact{gap:1px;padding:1px;border-radius:5px;font-size:8px;}
.bbsob-zoom-ctl.compact button{min-width:15px;height:15px;padding:0 3px;font-size:10px;border-radius:3px;}
.bbsob-zoom-ctl.compact output{min-width:26px;}
.bbsob-zoom-ctl.compact .long{display:none;}
.bbsob-zoom-ctl.compact .short{display:inline;}
