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

.ticket {
  display: flex;
  width: min(220px, 66vw);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.ticket__main {
  flex: 1;
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
}

.ticket__label {
  font-weight: 700;
  font-size: 12px;
  color: #17141a;
  font-family: inherit;
}

.ticket__stub {
  position: relative;
  width: 76px;
  background: #17141a;
  display: grid;
  place-items: center;
  border-left: 2px dashed rgba(255, 255, 255, 0.35);
}

.ticket__stampwrap {
  position: relative;
  width: 46px;
  height: 46px;
  outline: none;
  transition: transform 2s ease-out, filter 2s ease-out;
}

.ticket__stamp {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #dcb9d1, #b9d9dc, #c8dcb9, #dcdab9, #dcb9d1);
  filter: saturate(1.1);
  animation: stamp-spin 3s linear infinite;
}

.ticket__stamp-text {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  color: #17141a;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
}

.ticket__stampwrap:hover,
.ticket__stampwrap:focus-visible {
  transform: scale(1.15);
  filter: brightness(1.2);
}

.ticket__stampwrap.is-demo {
  animation: stamp-pulse 2s ease-out infinite;
}

@keyframes stamp-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes stamp-pulse {
  0%, 20% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.15);
    filter: brightness(1.25);
  }
  80%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticket__stampwrap {
    transition: none;
  }
  .ticket__stamp {
    animation: none;
  }
  .ticket__stampwrap.is-demo {
    animation: none;
  }
}
