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

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

.tornband {
  box-sizing: border-box;
  width: clamp(252px, 84vw, 372px);
  padding: 24px 20px;
  background: #b97b71;
  -webkit-mask: conic-gradient(from -45deg at bottom, rgba(0, 0, 0, 0), #000 1deg 89deg, rgba(0, 0, 0, 0) 90deg) bottom/14px 7px repeat-x, conic-gradient(from 135deg at top, rgba(0, 0, 0, 0), #000 1deg 89deg, rgba(0, 0, 0, 0) 90deg) top/14px 7px repeat-x, linear-gradient(#000 0 0) center/100% calc(100% - 14px) no-repeat;
  mask: conic-gradient(from -45deg at bottom, rgba(0, 0, 0, 0), #000 1deg 89deg, rgba(0, 0, 0, 0) 90deg) bottom/14px 7px repeat-x, conic-gradient(from 135deg at top, rgba(0, 0, 0, 0), #000 1deg 89deg, rgba(0, 0, 0, 0) 90deg) top/14px 7px repeat-x, linear-gradient(#000 0 0) center/100% calc(100% - 14px) no-repeat;
}

.tornband__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tornband__t {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(15px, 3.6vw, 19px);
  line-height: 1.25;
  font-family: inherit;
  text-align: center;
}

.tornband__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #2a2320;
  padding: 12px 24px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
  box-shadow: 0 6px 0 rgba(42, 35, 32, 0.3);
  animation: paperPress 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.tornband__ic {
  font-size: 16px;
  line-height: 1;
  color: #b97b71;
}

.tornband__btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@keyframes paperPress {
  0%, 100% {
    transform: translateY(-8px);
    box-shadow: 0 14px 0 rgba(42, 35, 32, 0.3);
  }
  50% {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(42, 35, 32, 0.3);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .tornband {
    width: 268px;
    padding: 20px 12px;
  }
  .tornband__in {
    gap: 12px;
  }
  .tornband__t {
    font-size: 13px;
  }
  .tornband__btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  .tornband__ic {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tornband__btn {
    animation: none !important;
    transform: none;
  }
}
