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);
}

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

.fl__box {
  position: relative;
  width: 100%;
  height: 170px;
  max-width: 320px;
  border-radius: 16px;
  border: 2px dashed rgba(255, 247, 230, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fl__ball {
  appearance: none;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #c93000;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  cursor: grab;
  touch-action: none;
  will-change: transform;
}

.fl.is-bounce .fl__ball {
  background: #fff7e6;
}

.fl__ball.is-grabbed,
.fl__ball:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 3px;
}

.fl.is-dragging .fl__ball {
  cursor: grabbing;
}

.fl__caption {
  margin: 0;
  color: #fff7e6;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 340px) {
  .fl__box {
    height: 130px;
  }
  .fl__ball {
    width: 36px;
    height: 36px;
  }
  .fl__caption {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl__ball {
    transition: none;
  }
}
