
.ticket-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ticket {
  position: relative;
  display: flex;
  width: 320px;
  margin-top: 18px;
  padding: 10px 24px;
  color: #0a0a0a;
  background: linear-gradient(160deg, #e8203d 0%, #c8102e 100%);
  transform: rotate(-2deg);
  /* cuts a half circle out of each side (16px is the size of the notch) */
  -webkit-mask:
    radial-gradient(circle at left center, transparent 16px, #000 17px) left / 51% 100% no-repeat,
    radial-gradient(circle at right center, transparent 16px, #000 17px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at left center, transparent 16px, #000 17px) left / 51% 100% no-repeat,
    radial-gradient(circle at right center, transparent 16px, #000 17px) right / 51% 100% no-repeat;
}

/* thin black frame inside the ticket */
.ticket::before {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 20px;
  right: 20px;
  border: 2px solid #0a0a0a;
  pointer-events: none;
}

.ticket-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.ticket-side span {
  writing-mode: vertical-rl; /* sideways text */
}

.ticket-side-left {
  border-right: 2px solid #0a0a0a;
}

.ticket-side-left span {
  transform: rotate(180deg);
}

.ticket-side-right {
  border-left: 2px solid #0a0a0a;
}

.ticket-middle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px;
}

.ticket-admit {
  padding: 4px 0;
  background-color: #0a0a0a;
  color: var(--red);
  /* color: #8e0b26; */
  font-family: var(--font-stamp);
  font-size: 24px;
  letter-spacing: 3px;
}

.ticket-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ticket-bat {
  width: 30px;
  flex-shrink: 0;
  filter: brightness(0); /* makes the red bat black */
}

.ticket-bat-flipped {
  transform: scaleX(-1);
}

.ticket-name {
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.ticket-name.long-name {
  font-size: 17px;
}

.ticket-club {
  font-family: var(--font-heading);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.ticket-note {
  max-width: 280px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.4;
}

/* test mode */
.demo-note {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  color: var(--red);
}
