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

.lgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  outline: none;
  cursor: pointer;
}

.lgs__badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(185, 160, 255, 0.18);
  color: #b9a0ff;
  font-weight: 700;
  font-size: 11px;
}

.lgs__grid {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  grid-template-rows: repeat(2, 70px);
  gap: 8px;
}

.lgs__cell {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.lgs__placeholder {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transition: opacity 220ms ease-out;
}

.lgs__photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.7);
  transform-origin: center;
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease-out;
}

.lgs__photo--0 {
  background: linear-gradient(135deg, #b9a0ff, #2f6df6);
}

.lgs__photo--1 {
  background: linear-gradient(135deg, #ff9ebb, #b9a0ff);
}

.lgs__photo--2 {
  background: linear-gradient(135deg, #4cd4a6, #6ec8ff);
}

.lgs__photo--3 {
  background: linear-gradient(135deg, #6ec8ff, #5b8cf8);
}

.lgs__cell--loaded .lgs__placeholder {
  opacity: 0;
}

.lgs__cell--loaded .lgs__photo {
  opacity: 1;
  transform: scale(1);
}

.lgs__hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

@media (max-width: 340px) {
  .lgs {
    gap: 8px;
  }
  .lgs__grid {
    grid-template-columns: repeat(3, 48px);
    grid-template-rows: repeat(2, 48px);
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lgs__placeholder, .lgs__photo {
    transition: none !important;
  }
}
