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

.wrap {
  display: grid;
  place-items: center;
}

.sheet {
  display: flex;
  gap: 24px;
}

.die {
  position: relative;
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: #2f6df6;
  display: grid;
  place-items: center;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
}
.die:focus-visible {
  outline: 2px solid #0a4fe8;
  outline-offset: 3px;
}
.die.is-punched {
  transform: scale(0.9) rotate(-4deg);
  opacity: 0.55;
}

.dieMark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 6px solid rgba(255, 247, 230, 0.9);
}

.cutLine {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  pointer-events: none;
  opacity: 0.6;
}

.cutLineRect {
  fill: none;
  stroke: #17141a;
  stroke-width: 2.4;
}

@media (max-width: 340px) {
  .sheet {
    gap: 16px;
  }
  .die {
    width: 74px;
    height: 74px;
  }
  .dieMark {
    width: 28px;
    height: 28px;
    border-width: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .die {
    transition: none;
  }
}
