/* Crossing: void lanes are holes in the board, and the HUD's empty boxes are hidden so the score sits
   on paper. The game marks those boxes with data-lane (hidden, not faded: per-box opacity is a GPU
   layer each). Road lanes need no CSS: their empty boxes are simply left enabled. */

.toy.crossing .scr {
  transition: border-color 0.2s ease;
}

.toy.crossing .scr input[data-lane="void"]:disabled,
.toy.crossing .scr input[data-lane="hud"]:disabled {
  visibility: hidden;
}

.toy.crossing .scr.cx-hit {
  border-color: var(--red);
}

.toy.crossing .scr.cx-win {
  border-color: var(--green);
}

.toy.crossing .scr.cx-shake {
  animation: crossing-shake 0.32s linear;
}

@keyframes crossing-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  15% {
    transform: translate(-5px, 2px);
  }
  30% {
    transform: translate(4px, -2px);
  }
  45% {
    transform: translate(-3px, 1px);
  }
  60% {
    transform: translate(3px, 0);
  }
  80% {
    transform: translate(-1px, -1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toy.crossing .scr {
    transition: none;
  }
  .toy.crossing .scr.cx-shake {
    animation: none;
  }
}
