/* Traffic Jam Lock - Rush Hour. Slide cars to free the red car through the exit. */
.rh-arena { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.rh-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 3px;
  width: min(92vw, 360px);
  aspect-ratio: 1 / 1;
  background: var(--casino-carbon, #12121e);
  border: 1px solid var(--casino-line, #2e2e44);
  border-radius: 12px;
  padding: 4px;
  touch-action: none;
}
.rh-cell { background: rgba(255,255,255,.03); border-radius: 3px; }
.rh-car {
  position: relative;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(14px, 4vw, 20px);
  cursor: pointer;
  user-select: none;
  transition: transform .16s ease;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.35);
  color: #0a0a14;
  font-weight: 800;
  z-index: 2;
}
.rh-car.red { background: linear-gradient(160deg,#ff4b6e,#ff2d55); color:#fff; }
.rh-car.truck { background: linear-gradient(160deg,#9aa0b8,#6b7280); }
.rh-car.car { background: linear-gradient(160deg,#7c5cff,#a58cff); color:#fff; }
.rh-car.taxi { background: linear-gradient(160deg,#ffd400,#ffb300); }
.rh-car.sel { outline: 3px solid var(--casino-green,#37e0a0); z-index: 3; }
.rh-exit {
  position: absolute;
  right: -10px;
  width: 10px;
  border-radius: 0 6px 6px 0;
  background: var(--casino-green,#37e0a0);
  box-shadow: 0 0 12px rgba(55,224,160,.6);
}
.rh-controls { display: flex; gap: 10px; }
.rh-ctrl {
  padding: 10px 18px;
  border: 1px solid var(--casino-line,#2e2e44);
  background: var(--casino-panel,#1a1a2a);
  color: var(--casino-ink,#f5f6fa);
  border-radius: 10px;
  font: 700 16px "Chivo", system-ui, sans-serif;
  cursor: pointer;
  min-width: 56px; min-height: 44px;
}
.rh-ctrl:active { background: rgba(124,92,255,.3); }

/* Hint pulse: BFS-suggested car flashes for 1.6s */
.rh-car.hint-pulse {
  animation: rh-hint 0.55s ease 3;
  box-shadow: 0 0 18px rgba(255, 212, 0, .9);
  z-index: 3;
}
@keyframes rh-hint {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.8); transform: scale(1.05); }
}
