/*!
 * ac-celebration 结果弹窗样式（配合 ac-popup.js）
 * 遮罩 + 卡片全部自绘，不依赖 sweetalert2。
 */

.acp-mask {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 16, 30, .5);
  backdrop-filter: blur(3px);
  animation: acp-fade .18s ease;
}
.acp-mask.is-on { display: flex; }

.acp-card {
  position: relative;
  box-sizing: border-box;
  max-width: min(560px, 92vw);
  max-height: 88vh;
  overflow: auto;
  padding: 22px 26px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(10, 16, 40, .28);
  text-align: center;
  animation: acp-pop .22s cubic-bezier(.2, .9, .3, 1.2);
}

.acp-visual { margin-bottom: 6px; }
.acp-img {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 46vh;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}
.acp-emoji {
  font-size: 64px;
  line-height: 1.1;
  margin: 4px 0 2px;
}
.acp-emoji--small { font-size: 30px; margin-top: 8px; }

.acp-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2430;
  margin: 6px 0 4px;
}
.acp-sub {
  font-size: 13.5px;
  color: #8a8f98;
  line-height: 1.6;
}

.acp-cases {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #eaecf2;
}
.acp-cases__title {
  font-size: 12px;
  color: #a2a7b0;
  margin-bottom: 8px;
}
.acp-cases__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.acp-case {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 18px;
  line-height: 1;
  background: #f4f6fa;
  border: 1px solid #e6e9f0;
  cursor: default;
}
.acp-case.is-pass {
  background: #e9f9ee;
  border-color: #bce8c9;
}
.acp-case.is-fail {
  background: #fdf1f1;
  border-color: #f3cfcf;
}

.acp-close {
  margin-top: 16px;
  padding: 8px 26px;
  border: 1.5px solid #dfe3ea;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.acp-close:hover { border-color: #4d6bfe; color: #4d6bfe; }

@keyframes acp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes acp-pop {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .acp-emoji { font-size: 48px; }
  .acp-card { padding: 18px 16px 14px; }
  .acp-case { width: 30px; height: 30px; font-size: 16px; }
}
