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

.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, #ffe3b0, #ff4d1f 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 #6ec8ff;
  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, #2f6df6, #6ec8ff);
}

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

.lightbox {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  visibility: hidden;
}

.fullImg {
  display: block;
  width: 190px;
  height: 108px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f6df6, #6ec8ff 60%, #4cd4a6);
}

.toolbar {
  display: flex;
  gap: 8px;
}

.ctrlBtn {
  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;
  position: relative;
}
.ctrlBtn--primary {
  background: #6ec8ff;
  color: #17141a;
}

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

.focusRing {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  border: 2px solid #6ec8ff;
  box-shadow: 0 0 0 3px rgba(110, 200, 255, 0.32);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 340px) {
  .scene {
    width: 220px;
    height: 124px;
  }
  .fullImg {
    width: 140px;
    height: 80px;
  }
  .ctrlBtn {
    font-size: 10px;
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .closeBtn, .ctrlBtn, .thumb {
    transition: none;
  }
}
