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

.cv {
  width: 100%;
  max-width: 300px;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.cv__scene {
  width: 220px;
  height: 132px;
  perspective: 800px;
}

.cv__card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform 600ms linear(0, 0.051, 0.176, 0.341, 0.518, 0.685, 0.831, 0.947, 1.032, 1.087, 1.117, 1.126, 1.121, 1.105, 1.085, 1.062, 1.041, 1.022, 1.008, 0.997, 1);
}

.cv__card--flipped {
  transform: rotateY(180deg);
}

.cv__face {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border-radius: 16px;
  backface-visibility: hidden;
  padding: 16px;
  display: grid;
  color: #fff7e6;
}

.cv__face--front {
  background: #17141a;
  align-content: space-between;
}

.cv__face--back {
  background: #17141a;
  transform: rotateY(180deg);
  align-content: start;
  gap: 12px;
}

.cv__chipIcon {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.7);
}

.cv__num {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
}

.cv__exp {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 247, 230, 0.7);
}

.cv__strip {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
}

.cv__cvcRow {
  display: flex;
  justify-content: flex-end;
}

.cv__cvcBox {
  min-width: 44px;
  box-sizing: border-box;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff7e6;
  color: #17141a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

.cv__field {
  width: 100%;
  max-width: 160px;
}

.cv__input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: #fff7e6;
  color: #17141a;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.cv__input::placeholder {
  color: rgba(23, 20, 26, 0.45);
}
.cv__input:focus, .cv__input.cv__input--focus {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .cv__scene {
    width: 190px;
    height: 114px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cv__card {
    transition: none;
  }
}
