/* Weighing Scales */
#scales .sc-slot{cursor:grab;outline:none}
#scales .sc-slot-bg{fill:transparent;stroke:none}
#scales .sc-slot:hover .sc-slot-bg{fill:rgba(31,111,209,.07)}
#scales .sc-slot:focus-visible .sc-slot-bg{stroke:var(--blue);stroke-width:3}
#scales .sc-slot.away{cursor:pointer}
#scales .sc-item{cursor:grab;outline:none}
#scales .sc-item:focus-visible{outline:3px solid var(--blue)}
#scales .sc-chev{cursor:pointer;outline:none}
#scales .sc-chev:focus-visible circle{stroke:var(--blue);stroke-width:4}
#scales .sc-held{cursor:grabbing;filter:drop-shadow(3px 6px 4px rgba(20,26,34,.3))}
#scales .sc-lens{pointer-events:none}

.sc-msg{position:absolute;z-index:6;padding:.45em .7em;background:var(--ink);color:#fff;border-left:.45em solid var(--red);border-radius:.6em;
  font-weight:600;font-size:.95em;line-height:1.3;text-align:center;pointer-events:none;text-wrap:balance}
.sc-note{position:absolute;z-index:7;top:.6em;left:50%;transform:translateX(-50%);max-width:90%;padding:.45em .9em;background:var(--ink);color:#fff;
  border-radius:.6em;font-weight:600;font-size:.9em;text-align:center;pointer-events:none}

#side{width:15.5em;gap:.6em}
.sc-lens-svg{flex:none;align-self:center;pointer-events:none}
@container not (max-width:680px){
  #side.sc-lens-side{width:19.5em}
  /* in the wider panel, each label stays on its own line above its control, as in the usual panel */
  #side.sc-lens-side .sc-mystery .ctl-label{flex-basis:100%;text-align:center}
}
#side::before,#side::after{content:"";margin:auto}
.sc-card{display:flex;flex-direction:column;align-items:center;gap:.5em;padding:.5em .55em;border:2px solid var(--ink);border-radius:.8em;background:#fff}
.sc-answer{border-left:.6em solid var(--red)}
.sc-mystery{border-left:.6em solid var(--gold)}
.sc-read{display:block;min-height:1.15em;font-size:2.3em;font-weight:700;line-height:1.15;text-align:center;font-variant-numeric:tabular-nums;white-space:normal;text-wrap:balance}
.sc-read.hide{color:#9aa6b4}
.sc-read.over{font-size:1.25em;line-height:1.3;min-height:2.3em;color:var(--red);display:flex;align-items:center}
.sc-mbody{display:flex;flex-direction:column;align-items:center;gap:.5em}
.sc-mystery .ctl{justify-content:center;gap:.3em .45em}
.sc-mystery .stepper input{width:5.4ch}
/* narrower buttons, so that the Steps choice and the stepper with its "g" fit inside the card */
.sc-mystery .seg .btn{padding:0 .6em}
.sc-mystery .stepper button{width:max(1.8em,40px)}
.sc-gram{font-weight:700}
.stepper.masked{position:relative}
.stepper.masked input{color:transparent}
.stepper.masked::after{content:"?";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font:700 1.3em/1 var(--font-head);color:var(--ink);pointer-events:none}

/* narrow tool (phone): the cards go under the stage, in a strip with a fixed height that scrolls */
@container (max-width:680px){
  #bar .ctl-label{display:none}
  /* plain space under the strip of cards, so that no control is on the bottom edge, next to the advertisement */
  .tool-app{padding-bottom:1em}
  .tool-body{flex-direction:column;border-bottom:2px solid var(--ink)}
  #side{width:auto;height:8.4em;flex:none;flex-direction:row;flex-wrap:wrap;align-content:flex-start;border-left:0;border-top:2px solid var(--ink);padding:.45em;gap:.45em}
  #side::before,#side::after{content:none}
  .sc-card{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:.4em .6em;padding:.35em .45em}
  .sc-read{font-size:1.6em;min-width:5em}
  .sc-read.over{font-size:1em;min-height:0}
  .sc-mbody{flex-direction:row;flex-wrap:wrap;justify-content:center}
}
