/* ---------------------------------------------------------------- */
/* 参与者提交页                                                      */
/* ---------------------------------------------------------------- */

.page .wrap {
  max-width: 520px;
}

.hero h1 {
  font-size: clamp(38px, 10.8vw, 54px);
}

.ticket {
  position: relative;
  margin-top: 28px;
  padding: 22px 22px 24px;
  overflow: hidden;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both;
}

.ticket::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(176, 134, 74, 0.14);
  border-radius: 20px;
  pointer-events: none;
}

.ticket-stamp {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 59, 82, 0.3);
  border-radius: 50%;
  color: rgba(201, 59, 82, 0.45);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 0;
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 2px;
  border-bottom: 1px dashed rgba(176, 134, 74, 0.3);
}

.pick-list {
  display: grid;
  gap: 9px;
}

.pick-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.pick-rank {
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.pick-rank em {
  display: block;
  font-style: normal;
  font-size: 9px;
  color: rgba(139, 115, 120, 0.6);
}

.pick-row .number-box {
  padding: 9px 14px;
}

.pick-row .number-box input {
  font-size: 21px;
  letter-spacing: 0.14em;
}

.pick-row--primary .number-box {
  border-color: rgba(201, 59, 82, 0.28);
}

.pick-row--primary .number-box input {
  font-size: 24px;
}

.pick-row--primary .pick-rank {
  color: var(--coral-strong);
  font-weight: 600;
}

.ticket-kicker {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.ticket-no {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

#matchForm {
  position: relative;
  z-index: 1;
}

.gender-option {
  padding: 14px 10px;
}

#submitBtn {
  margin-top: 12px;
}

.shake {
  animation: shake 0.34s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

/* 成功态 --------------------------------------------------------- */

.success {
  padding: 46px 0 10px;
  text-align: center;
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.eyebrow--center {
  justify-content: center;
}

.seal {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 6px auto 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff7ef;
  background:
    radial-gradient(circle at 32% 26%, #ea6276 0%, #d2455c 40%, #a92740 100%);
  box-shadow:
    0 30px 60px -26px rgba(169, 39, 64, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: float-soft 4.5s ease-in-out infinite;
}

.seal::before,
.seal::after {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 50%;
  border: 1px solid rgba(201, 59, 82, 0.28);
  animation: pulse 3s ease-out infinite;
}

.seal::after {
  animation-delay: 1.5s;
}

.seal svg {
  width: 48px;
  height: 48px;
}

.success h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 600;
  line-height: 1.35;
}

.receipt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 26px 0 20px;
  padding: 18px 14px;
  border: 1px dashed rgba(176, 134, 74, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  text-align: left;
}

.receipt-self {
  flex: 0 0 auto !important;
  min-width: 68px;
  text-align: center;
}

.receipt-target {
  flex: 1 !important;
  min-width: 0;
}

.receipt span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.receipt strong {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.receipt-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.receipt-picks b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border-radius: 10px;
  background: rgba(249, 227, 227, 0.88);
  border: 1px solid rgba(201, 59, 82, 0.22);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--coral-strong);
  font-variant-numeric: tabular-nums;
}

.receipt-arrow {
  flex: none !important;
  width: 26px;
  color: var(--coral);
  opacity: 0.7;
}

.receipt-arrow svg {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.success-note {
  max-width: 24em;
  margin: 0 auto 24px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* 已关闭 --------------------------------------------------------- */

.notice {
  margin-top: 30px;
  padding: 38px 24px;
  text-align: center;
  animation: rise 0.5s ease both;
}

.notice-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(176, 134, 74, 0.1);
  color: var(--gold);
}

.notice-icon svg {
  width: 30px;
  height: 30px;
}

.notice h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

.notice p {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -24px;
  font-style: normal;
  font-size: 14px;
  color: var(--coral);
  opacity: 0;
  animation: fall linear forwards;
}

@media (min-width: 768px) {
  .page .wrap {
    max-width: 560px;
  }

  .hero {
    padding-top: 74px;
  }

  .ticket {
    padding: 26px 28px 28px;
  }
}
