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;
  gap: 16px;
}

.thumb {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.thumb:focus-visible .thumbImg {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.thumbImg {
  display: block;
  width: 60px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}
.thumbImg--a {
  background: linear-gradient(135deg, #4cd4a6, #6ec8ff);
}
.thumbImg--b {
  background: linear-gradient(135deg, #b9a0ff, #2f6df6);
}
.thumbImg--c {
  background: linear-gradient(135deg, #6ec8ff, #4cd4a6);
}

.thumbLabel {
  font-size: 10px;
  font-weight: 700;
  color: #17141a;
}

.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: 0;
  visibility: hidden;
  overflow: hidden;
}

.fullImg {
  display: block;
  width: 220px;
  height: 118px;
  border-radius: 16px 16px 0 0;
  opacity: 0;
}
.fullImg--a {
  background: linear-gradient(135deg, #4cd4a6, #6ec8ff);
}
.fullImg--b {
  background: linear-gradient(135deg, #b9a0ff, #2f6df6);
}
.fullImg--c {
  background: linear-gradient(135deg, #6ec8ff, #4cd4a6);
}

.caption {
  width: 220px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 247, 230, 0.96);
  color: #17141a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.closeBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff7e6;
  background: rgba(23, 20, 26, 0.82);
  cursor: pointer;
}
.closeBtn:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .scene {
    width: 220px;
    height: 124px;
  }
  .fullImg {
    width: 160px;
    height: 82px;
  }
  .caption {
    width: 160px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .closeBtn, .thumb {
    transition: none;
  }
}
