@font-face {
  font-family: "Paperlogy";
  font-weight: 400;
  font-style: normal;
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2")
    format("woff2");
}
@font-face {
  font-family: "Paperlogy";
  font-weight: 700;
  font-style: normal;
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2")
    format("woff2");
}

body {
  font-family: "Paperlogy", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
  color: #333;
}

.title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.info-box-red {
  border: 1px solid #d93d3d;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 30px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.ticket-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-type {
  font-size: 13px;
  color: #888;
  font-weight: 700;
}

.amount-box {
  background-color: #f0f0f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  display: inline-block;
}

.status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px; /* align tweaking */
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    box-shadow: 0 0 4px rgba(46, 211, 75, 0.8);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    box-shadow: 0 0 10px rgba(46, 211, 75, 0);
    opacity: 0;
  }
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2ed34b;
  box-shadow: 0 0 4px rgba(46, 211, 75, 0.6);
}

.status-dot::before,
.status-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: 50%;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot::after {
  animation-delay: 1s;
}

.card-graphic {
  background-color: #eb1200;
  border-radius: 12px;
  padding: 24px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  position: relative;
  margin-bottom: 30px;
  box-shadow: 0 4px 14px rgba(235, 18, 0, 0.2);
  overflow: hidden;
}

.card-graphic.has-image {
  background-color: transparent;
  padding: 0;
  box-shadow: none;
}

.card-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}

.card-logo img {
  height: 20px;
}

.card-text {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-top: 20px;
}

.barcode-section {
  text-align: center;
  margin-bottom: 20px;
}

.barcode-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.barcode-img {
  max-width: 100%;
  height: auto;
  width: 80%;
}

.barcode-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.barcode-number-box {
  border: 1px solid #c76767;
  color: #b33939;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.barcode-date {
  color: #888;
  font-size: 14px;
  white-space: nowrap;
}

/* 모바일 대응 */
@media (max-width: 400px) {
  .barcode-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .barcode-date {
    font-size: 12px;
  }
}

.instruction-box {
  background-color: #f2f2f2;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}

.notice-text {
  font-size: 13px;
  color: #888;
  margin-bottom: 30px;
  padding-left: 10px;
}

.company-info {
  border: 1px solid #e0e0e0;
  padding: 16px;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.copyright {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

.barcode-placeholder {
  width: 100%;
  height: 80px;
  background-color: #f9f9f9;
  border: 1px dashed #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-size: 14px;
  border-radius: 8px;
}
