html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.wrap {
  display: grid;
  place-items: center;
  gap: 20px;
}

.tray {
  position: relative;
  width: 220px;
  height: 160px;
}

.chip {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.chip--a {
  left: 10px;
  top: 10px;
  background: #0a4fe8;
}

.chip--b {
  left: 80px;
  top: 4px;
  background: #c93000;
}

.chip--c {
  left: 150px;
  top: 20px;
  background: #fff7e6;
}

.chip--d {
  left: 40px;
  top: 80px;
  background: #4cd4a6;
}

.chip--e {
  left: 120px;
  top: 84px;
  background: #2f6df6;
}

.shuffleBtn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #fff7e6;
  color: #17141a;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.shuffleBtn:hover {
  transform: scale(1.04);
}
.shuffleBtn:active {
  transform: scale(0.96);
}
.shuffleBtn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 3px;
}

@media (max-width: 340px) {
  .tray {
    width: 176px;
    height: 130px;
    transform: scale(0.86);
    transform-origin: top center;
  }
  .shuffleBtn {
    font-size: 11px;
    padding: 4px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shuffleBtn {
    transition: none;
  }
}
