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

.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, #1c2430, #17141a 70%);
}

.frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 184px;
  height: 108px;
  margin-left: -92px;
  margin-top: -54px;
}

.draggable {
  position: absolute;
  width: 44px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4cd4a6, #fff7e6);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  will-change: transform;
  cursor: default;
}
.draggable:focus-visible {
  outline: 2px solid #4cd4a6;
  outline-offset: 3px;
}

.readout {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(5, 4, 9, 0.5);
  color: rgba(255, 247, 230, 0.85);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 340px) {
  .scene {
    width: 220px;
    height: 124px;
  }
  .frame {
    width: 128px;
    height: 76px;
    margin-left: -64px;
    margin-top: -38px;
  }
  .draggable {
    width: 34px;
    height: 24px;
  }
  .readout {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .draggable {
    transition: none;
  }
}
