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

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  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, #fff3c4, #ffd23f 85%);
}

.grid {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.thumb:focus-visible .thumbImg {
  outline: 2px solid #c93000;
  outline-offset: 2px;
}

.thumbImg {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  background: linear-gradient(135deg, #ff9ebb, #b9a0ff);
}

.backdrop {
  position: absolute;
  inset: 0;
  background: #17141a;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lightbox {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  overflow: hidden;
}

.fullImg {
  display: block;
  width: 190px;
  height: 130px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff9ebb, #b9a0ff 60%, #6ec8ff);
  touch-action: none;
  cursor: grab;
}
.fullImg:active {
  cursor: grabbing;
}

.dragNote {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: #fff7e6;
  background: rgba(0, 0, 0, 0.38);
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
}

.closeBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #17141a;
  background: rgba(255, 247, 230, 0.92);
  cursor: pointer;
}
.closeBtn:focus-visible {
  outline: 2px solid #c93000;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .scene {
    width: 220px;
    height: 124px;
  }
  .fullImg {
    width: 140px;
    height: 96px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .closeBtn, .thumb {
    transition: none;
  }
}
