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

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

.sd {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: 100%;
}

.sd__caption {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
}

.sd__scene {
  position: relative;
  width: 220px;
  height: 190px;
  display: grid;
  place-items: center;
}

.sd__peek {
  position: absolute;
  width: 160px;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(160deg, #b9a0ff, #6ec8ff);
  will-change: transform, opacity;
}

.sd__card {
  position: relative;
  z-index: 4;
  width: 160px;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(160deg, #4cd4a6, #5b8cf8);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
  will-change: transform;
}

.sd__card:active {
  cursor: grabbing;
}

.sd__card:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 3px;
}

.sd__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #17141a;
  padding: 0 12px;
  text-align: center;
}

.sd__btn {
  position: absolute;
  bottom: 12px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.sd__btn--nope {
  left: 12px;
  color: #c2361a;
}

.sd__btn--like {
  right: 12px;
  color: #0a4fe8;
}

.sd__btn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.sd__status {
  margin: 0;
  font-size: 11px;
  color: #17141a;
  font-weight: 600;
}

@media (max-width: 340px) {
  .sd {
    gap: 8px;
  }
  .sd__scene {
    width: 150px;
    height: 108px;
  }
  .sd__peek {
    width: 78px;
    height: 92px;
  }
  .sd__card {
    width: 78px;
    height: 92px;
  }
  .sd__label {
    font-size: 10px;
    padding: 0 4px;
  }
  .sd__btn {
    width: 22px;
    height: 22px;
    font-size: 11px;
    bottom: 4px;
  }
  .sd__btn--nope {
    left: 4px;
  }
  .sd__btn--like {
    right: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sd__card {
    transition: none;
  }
}
