/* ---------------------------------------------------------------- */
/* 揭晓 / 结果查询页                                                  */
/* ---------------------------------------------------------------- */

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

.hero--center {
  text-align: center;
  padding-top: clamp(40px, 10vw, 66px);
}

.hero--center h1 {
  font-size: clamp(36px, 10.4vw, 52px);
}

.hero--center .hero-lead {
  margin-left: auto;
  margin-right: auto;
}

.hero--center .mark::after {
  z-index: -1;
}

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

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

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

/* 未揭晓 --------------------------------------------------------- */

.locked {
  margin-top: 30px;
  padding: 40px 24px 34px;
  text-align: center;
  animation: rise 0.6s ease both;
}

.locked-seal {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 35% 30%, #fffaf4, #f4e6d6);
  border: 1px solid rgba(176, 134, 74, 0.26);
  box-shadow: 0 20px 40px -26px rgba(120, 80, 40, 0.5);
}

.locked-seal::before,
.locked-seal::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(176, 134, 74, 0.2);
  animation: pulse 3.2s ease-out infinite;
}

.locked-seal::after {
  animation-delay: 1.6s;
}

.locked-seal svg {
  width: 34px;
  height: 34px;
}

.locked h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(27px, 7.6vw, 32px);
  font-weight: 600;
  line-height: 1.35;
}

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

.locked-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(176, 134, 74, 0.1);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #8a6330;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(176, 134, 74, 0.5);
  animation: status-pulse 1.8s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(176, 134, 74, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(176, 134, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(176, 134, 74, 0);
  }
}

/* 查询 ----------------------------------------------------------- */

.lookup {
  margin-top: 30px;
  padding: 22px 22px 24px;
  animation: rise 0.6s ease both;
}

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

.lookup-sub {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.lookup .number-box {
  padding: 13px 18px;
  margin-bottom: 12px;
}

.lookup .number-box input {
  font-size: 28px;
}

/* 互选成功 ------------------------------------------------------- */

.match-card {
  position: relative;
  margin-top: 30px;
  padding: 34px 22px 28px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(249, 227, 227, 0.9) 0%, rgba(255, 252, 248, 0.95) 58%),
    var(--paper);
  animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(201, 59, 82, 0.14);
  border-radius: 19px;
  pointer-events: none;
}

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

.match-people {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 18px;
}

.match-people::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16%;
  right: 16%;
  border-top: 1px dashed rgba(201, 59, 82, 0.32);
}

.medal {
  position: relative;
  z-index: 1;
  width: 98px;
  height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(176, 134, 74, 0.4);
  box-shadow: 0 18px 36px -24px rgba(74, 28, 38, 0.5);
}

.medal span {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

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

.match-heart {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d2455c, #a92740);
  box-shadow: 0 14px 28px -14px rgba(169, 39, 64, 0.7);
  animation: float-soft 3.4s ease-in-out infinite;
}

.match-heart svg {
  width: 24px;
  height: 24px;
}

.match-desc {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--coral-strong);
}

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

.match-card .privacy {
  margin-top: 16px;
}

/* 多人互选 ------------------------------------------------------- */

.match-self-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 16px;
}

.medal--self {
  width: 84px;
  height: 84px;
  flex: none;
}

.medal--self strong {
  font-size: 32px;
}

.multi-copy {
  text-align: left;
}

.multi-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.multi-copy span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 9px;
  margin: 6px 0 18px;
  text-align: left;
}

.partner-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 13px 12px;
  border: 1px solid rgba(176, 134, 74, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.partner-rank {
  position: absolute;
  top: 7px;
  left: 13px;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.partner-main {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.partner-main strong {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.partner-main span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.partner-heart {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--coral);
  background: rgba(249, 227, 227, 0.9);
}

.partner-heart svg {
  width: 14px;
  height: 14px;
}

/* 未互选 --------------------------------------------------------- */

.miss-card {
  margin-top: 30px;
  padding: 36px 24px 30px;
  text-align: center;
  animation: rise 0.65s ease both;
}

.miss-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(139, 115, 120, 0.8);
  background: rgba(247, 236, 225, 0.7);
  border: 1px solid rgba(176, 134, 74, 0.18);
}

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

.miss-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 7.4vw, 31px);
  font-weight: 600;
  line-height: 1.35;
}

.miss-text {
  max-width: 22em;
  margin: 0 auto 16px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.miss-pick {
  display: inline-flex;
  padding: 7px 14px;
  margin: 0 0 20px;
  border-radius: 999px;
  background: rgba(176, 134, 74, 0.1);
  font-size: 11.5px;
  color: #8a6330;
}

.miss-card .privacy {
  margin-top: 16px;
}

/* 撒花 ----------------------------------------------------------- */

.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 (max-width: 380px) {
  .medal {
    width: 86px;
    height: 86px;
  }

  .medal strong {
    font-size: 32px;
  }

  .match-heart {
    width: 46px;
    height: 46px;
  }
}

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