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

.liw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.liw__widget {
  position: relative;
  width: 240px;
  height: 130px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.liw__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  box-sizing: border-box;
  transition: opacity 220ms ease-out;
}

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

.liw__track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.liw__bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9ebb, #b9a0ff);
  transition: width 80ms linear;
}

.liw__sub {
  margin: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.liw__content {
  position: absolute;
  inset: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  opacity: 0;
  transform: scale(0.85);
  transform-origin: center;
  transition: opacity 600ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.liw__card {
  border-radius: 8px;
  background: linear-gradient(160deg, #4cd4a6, #6ec8ff);
}

.liw__widget--loaded .liw__placeholder {
  opacity: 0;
}

.liw__widget--loaded .liw__content {
  opacity: 1;
  transform: scale(1);
}

.liw__replay {
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}

@media (max-width: 340px) {
  .liw__widget {
    width: 190px;
    height: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .liw__placeholder, .liw__content, .liw__bar {
    transition: none !important;
  }
}
