html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.labels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 4px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.label--low {
  background: #e5e7eb;
  color: #4b5563;
}

.label--medium {
  background: #dbeafe;
  color: #7386ba;
}

.label--high {
  background: #fef3c7;
  color: #a47551;
}

.label--urgent {
  background: #ffffff;
  color: #c2361a;
  transform-origin: center;
}

.stage.is-demo .label--urgent {
  animation: urgent-flash 2s ease-out infinite;
}

@keyframes urgent-flash {
  0%, 40% {
    opacity: 1;
    transform: scale(1);
  }
  55% {
    opacity: 0.5;
    transform: scale(1.05);
  }
  70%, 100% {
    opacity: 1;
    transform: scale(1);
  }
}
.label--urgent {
  position: relative;
}

.label--urgent::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 4px;
  border: 2px solid rgba(194, 54, 26, 0);
  transform: scale(0.9);
  pointer-events: none;
}

.stage.is-demo .label--urgent {
  animation: urgent-flash 2s ease-out infinite, urgent-tint 2s ease-out infinite;
}

.stage.is-demo .label--urgent::after {
  animation: urgent-ring 2s ease-out infinite;
}

@keyframes urgent-tint {
  0%, 40% {
    color: #c2361a;
    background-color: #ffffff;
  }
  55% {
    color: rgb(81.3411764706%, 38.5176470588%, 29.9529411765%);
    background-color: rgb(98.0862745098%, 93.6941176471%, 92.8156862745%);
  }
  70%, 100% {
    color: #c2361a;
    background-color: #ffffff;
  }
}
@keyframes urgent-ring {
  0%, 40% {
    transform: scale(0.9);
    opacity: 0;
    border-color: rgba(194, 54, 26, 0);
  }
  50% {
    transform: scale(1);
    opacity: 0.75;
    border-color: rgba(84.4509803922%, 43.5490196078%, 34.2156862745%, 0.85);
  }
  70%, 100% {
    transform: scale(1.22);
    opacity: 0;
    border-color: rgba(194, 54, 26, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .label--urgent {
    animation: none;
  }
  .stage.is-demo .label--urgent::after {
    animation: none;
    opacity: 0;
  }
}
