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

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

.ts {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  max-width: 400px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.ts__trash {
  position: absolute;
  top: 10%;
  right: 14%;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 2px dashed rgba(23, 20, 26, 0.3);
  transition: border-color 220ms ease-out, background-color 220ms ease-out;
}

.ts__trash.is-armed {
  border-color: #c93000;
  border-style: solid;
  background: rgba(201, 48, 0, 0.12);
}

.ts__icon {
  position: absolute;
  top: 62%;
  left: 24%;
  appearance: none;
  border: 0;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 12px;
  background: #2f6df6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  cursor: grab;
  touch-action: none;
  will-change: transform, opacity;
}

.ts.is-armed .ts__icon {
  background: #c93000;
}

.ts__icon.is-grabbed,
.ts__icon:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 3px;
}

.ts.is-dragging .ts__icon {
  cursor: grabbing;
}

.ts__caption {
  position: relative;
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 340px) {
  .ts {
    height: 160px;
  }
  .ts__trash {
    width: 46px;
    height: 46px;
  }
  .ts__icon {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
  }
  .ts__caption {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ts__icon {
    transition: none;
  }
  .ts__trash {
    transition: none;
  }
}
