*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #172033;
  background: #eef2f7;
  font-family: "Segoe UI", Arial, sans-serif;
}
main { width: 600px; max-width: 100%; }
h1 { font-size: 1.4rem; }
#scene {
  position: relative;
  width: 600px;
  height: 400px;
  max-width: 100%;
  overflow: hidden;
  background-size: 600px 400px;
  border: 4px solid white;
  box-shadow: 0 10px 30px #64748b66;
}
#hole, #piece {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 100px;
}
#hole { background: #ffffffbb; box-shadow: inset 0 0 0 2px #ffffff; }
#piece {
  left: 0;
  background-size: 600px 400px;
  box-shadow: 0 2px 7px #0f172aaa;
}
#slider {
  position: relative;
  height: 60px;
  margin-top: 16px;
  border-radius: 30px;
  background: #cbd5e1;
}
#handle {
  position: absolute;
  left: 0;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #2563eb;
  font-size: 1.5rem;
  cursor: grab;
  touch-action: none;
}
#scene.solved { border-color: #16a34a; }
#scene.solved #hole { background: transparent; }
#status { min-height: 1.5rem; text-align: center; }
.solved + #slider #handle { background: #16a34a; }
