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

.scene {
  position: relative;
  width: 320px;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: linear-gradient(160deg, #fdf6ff, #ffffff 70%);
  border: 1px solid rgba(23, 20, 26, 0.08);
}

.frame {
  position: absolute;
  inset: 0;
}

.subjectShape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6ec8ff, #b9a0ff);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translate(-50%, -50%);
  will-change: transform;
}

.finger {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: -10px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.85);
  border: 2px solid #fff7e6;
  cursor: grab;
  touch-action: none;
}
.finger::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: #17141a;
}
.finger:active {
  cursor: grabbing;
}
.finger:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 3px;
}

.readout {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 340px) {
  .scene {
    width: 220px;
    height: 124px;
  }
  .subjectShape {
    width: 60px;
    height: 60px;
  }
  .finger {
    width: 16px;
    height: 16px;
    margin: -8px;
  }
  .readout {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .finger {
    transition: none;
  }
}
