/* Home — ticket card UI */

body.home {
  min-height: 100vh;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #171717;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at top, #3a3a3a 0%, #1c1c1c 55%, #111 100%);
}

/* Kill browser default blue/purple + underline on all home links */
body.home a,
body.home a:visited,
body.home a:active {
  color: inherit;
  text-decoration: none;
}

.home-wrap {
  margin: 0 auto;
  display: flex;
  min-height: 100vh;
  max-width: 430px;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.75rem;
}

@media (min-width: 640px) {
  .home-wrap {
    padding: 2.5rem 1rem;
  }
}

.ticket {
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: #1c1c1c;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.ticket-inner {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}

/* Cover */
.ticket-cover {
  position: relative;
  height: 58vw;
  max-height: 420px;
  min-height: 280px;
  background: #e5e5e5;
}

@media (min-width: 640px) {
  .ticket-cover {
    height: 380px;
  }
}

.ticket-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.ticket-cover-meta {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.88) 42%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.22) 80%,
    transparent 100%
  );
  padding: 3.25rem 1.25rem 1.15rem;
  color: #fff;
}

.ticket-eyebrow {
  margin: 0 0 0.25rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.ticket-heading {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .ticket-heading {
    font-size: 26px;
  }
}

.ticket-sub {
  margin: 0.25rem 0 0;
  font-size: 11px;
  letter-spacing: 0.025em;
  color: rgba(255, 255, 255, 0.75);
}

/* Notched sections */
.ticket-notch {
  position: relative;
  border-top: 1px dashed #e5e5e5;
  background: #fff;
  padding: 1.25rem 1rem 1.5rem;
}

@media (min-width: 640px) {
  .ticket-notch {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.ticket-notch::before,
.ticket-notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  background: #1c1c1c;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ticket-notch::before {
  left: -11px;
}

.ticket-notch::after {
  right: -11px;
}

.ticket-notch--footer {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}

/* Meta row */
.ticket-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.ticket-meta-label {
  margin: 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #a3a3a3;
}

.ticket-meta-value {
  margin: 0.25rem 0 0;
  font-size: 12px;
  font-weight: 700;
}

.ticket-meta-cell--mid {
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
}

/* SNS icons — shared avatar baseline */
.ticket-sns {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: start;
  gap: 0.25rem;
}

.ticket-sns-link {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  line-height: 0;
}

.ticket-sns-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ticket-sns-col > a:first-child {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  line-height: 0;
}

.sns-avatar {
  display: block;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 9999px;
  box-shadow: 0 0 0 1px #e5e5e5;
}

.sns-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sns-split {
  margin: 0.375rem 0 0;
  font-size: 9px;
  line-height: 1.25;
  color: #a3a3a3;
  text-align: center;
}

.sns-split a {
  color: #a3a3a3;
  transition: color 0.15s ease;
}

.sns-split a:hover {
  color: #262626;
}

.sns-split-sep {
  margin: 0 0.125rem;
  color: #d4d4d4;
}

/* Category nav */
.ticket-nav {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ticket-nav a {
  display: block;
  border-radius: 0.5rem;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #171717;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ticket-nav a:hover {
  background: #f0f0f0;
  border-color: #d4d4d4;
}

/* Barcode */
.barcode-bars {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1px;
  height: 42px;
  margin: 0 auto;
  max-width: 220px;
}

.barcode-bars span {
  display: block;
  background: #111;
  height: 42px;
  width: 2px;
}

.barcode-bars span:nth-child(5n) {
  width: 3px;
}

.barcode-bars span:nth-child(7n) {
  width: 1px;
}

.ticket-credit {
  margin: 0.75rem 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #737373;
}

.ticket-credit a {
  color: #737373;
  transition: color 0.15s ease;
}

.ticket-credit a:hover {
  color: #171717;
}

.ticket-credit-note {
  margin: 0.25rem 0 0;
  font-size: 10px;
  color: #a3a3a3;
}

.ticket-credit-note a {
  color: #a3a3a3;
  transition: color 0.15s ease;
}

.ticket-credit-note a:hover {
  color: #525252;
}
