/* Shift Click — board pieces sit inside their grid cell (pitch stays = the screen's cell, so pointer mapping holds) */

.toy.shift-click .sc-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.toy.shift-click .sc-board {
  -webkit-touch-callout: none;
}

.toy.shift-click .sc-board input {
  width: calc(var(--box) * 0.8);
  height: calc(var(--box) * 0.8);
  margin: calc(var(--box) * 0.1);
  border-radius: 4px;
}

/* the board's empty boxes are pieces, not background, so only locked boxes are disabled (dim in the JS).
   Locks are drawn smaller with size + margin, never transform (see PERF in toys.js). */
.toy.shift-click .sc-board input[data-lock] {
  width: calc(var(--box) * 0.54);
  height: calc(var(--box) * 0.54);
  margin: calc(var(--box) * 0.23);
}

.toy.shift-click .sc-board input[data-anchor] {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.toy.shift-click .sc-board input[data-cur] {
  outline: 2px dashed var(--ink);
  outline-offset: 3px;
}

.toy.shift-click .sc-board input[data-anchor][data-cur] {
  outline: 3px dashed var(--blue);
}

/* range preview: what the next click will flip */
.toy.shift-click .sc-board input[data-pv] {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* level strip: one checkbox per level, ticked = cleared, gold = par, a little gap where Alt comes in.
   Locked levels are disabled: the browser's own faded box, no extra opacity. */
.toy.shift-click .sc-levels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  padding: 2px 0;
}

.toy.shift-click .sc-levels input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.toy.shift-click .sc-levels input.sc-new {
  margin-left: 8px;
}

.toy.shift-click .sc-levels input.sc-gold {
  accent-color: var(--gold);
}

.toy.shift-click .sc-levels input[data-on] {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.toy.shift-click .sc-levels input:disabled {
  cursor: default;
}

/* the big sticky modifier keys */
.toy.shift-click .sc-mod {
  gap: 10px;
  padding: 4px 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  -webkit-tap-highlight-color: transparent;
}

.toy.shift-click .sc-mod input {
  width: 38px;
  height: 38px;
  accent-color: var(--blue);
}

@media (max-width: 400px) {
  .toy.shift-click .sc-levels {
    gap: 4px;
  }
  .toy.shift-click .sc-levels input {
    width: 16px;
    height: 16px;
  }
  .toy.shift-click .sc-levels input.sc-new {
    margin-left: 4px;
  }
}

.toy.shift-click .sc-board input[data-pv][data-cur] {
  outline-style: dashed;
}

/* the modifier keys sit right under the board, like a keyboard under a screen */
.toy.shift-click .toy-options {
  order: 1;
}
.toy.shift-click .toy-status {
  order: 2;
}
.toy.shift-click .toy-actions {
  order: 3;
}
