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

.stage {
  padding: clamp(8px, 3vw, 20px);
}

.card-a {
  position: relative;
  box-sizing: border-box;
  width: min(240px, 78vw);
  border-radius: 16px;
  padding: 4px;
  isolation: isolate;
}

.card-a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 4px;
  background: repeating-linear-gradient(120deg, #2f6df6 0 26px, #ffd23f 26px 52px, #ff4d1f 52px 78px, transparent 78px 104px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: sweep 2s linear infinite;
}

.card-a__body {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #17141a;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-a__body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.5px, transparent 0.5px), radial-gradient(rgba(23, 20, 26, 0.6) 0.5px, transparent 0.5px);
  background-size: 3px 3px, 5px 5px;
}

.card-a__icon {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #2f6df6, #ff4d1f);
}

.card-a__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font: 700 clamp(13px, 3.2vw, 15px)/1.3 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.card-a__desc {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: clamp(11px, 2.6vw, 12.5px);
  line-height: 1.4;
}

@keyframes sweep {
  to {
    background-position: 208px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card-a::before {
    animation: none;
  }
}
