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

.grid {
  width: clamp(240px, 82vw, 380px);
  height: clamp(160px, 46vw, 210px);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 2.4vw, 12px);
}

.grid__tile {
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  padding: clamp(10px, 3vw, 14px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  animation: tileWave 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.grid__tile--a {
  grid-row: 1/3;
  animation-delay: 0s;
}

.grid__tile--b {
  grid-column: 2;
  grid-row: 1;
  animation-delay: -0.5s;
}

.grid__tile--c {
  grid-column: 3;
  grid-row: 1;
  animation-delay: -1s;
}

.grid__tile--d {
  grid-column: 2/4;
  grid-row: 2;
  animation-delay: -1.5s;
}

.grid__dot {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: #2f6df6;
}

.grid__label {
  margin: 0;
  color: #17141a;
  font-weight: 600;
  font-size: clamp(10.5px, 2.6vw, 12.5px);
  line-height: 1.3;
}

@keyframes tileWave {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
  15% {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  }
  30% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
}
@media (prefers-reduced-motion: reduce) {
  .grid__tile {
    animation: none !important;
    transform: none;
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
}
