/* 揭晓页：开炉动画、对比卡、说明书、炼制家谱、猜测对比；海报弹层；还在冒烟的等待页。 */

/* ---------- 开炉：炉门大开、光芒四射 ---------- */
.diorama--open .stove__fire { opacity: 1; background: radial-gradient(circle, rgba(255, 250, 220, 0.95) 0, rgba(255, 210, 110, 0.55) 40%, transparent 68%); }
.diorama--open .diorama__glow { opacity: 1; }
.stove.is-opening { animation: shake 0.5s ease-in-out; }
.stove.is-opening .stove__fire { animation: fire-flare 1.4s var(--ease-pop); }
.stove.is-opening .stove__burst i { animation: burst 1.2s var(--ease-out) forwards; }
.diorama.fx-open::after {
  background: radial-gradient(ellipse 70% 60% at 49% 60%, rgba(255, 248, 220, 0.85), rgba(255, 210, 110, 0.3) 45%, transparent 74%);
  animation: fx-flash 2.4s ease-out forwards;
}
.diorama.fx-open::before {
  z-index: 1;
  left: 49%; top: 60%;
  width: 160%;
  padding-top: 160%;
  margin: -80% 0 0 -80%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 236, 160, 0.42) 0 8deg, transparent 8deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  mask-image: radial-gradient(circle, #000 10%, transparent 62%);
  animation: rays 3.6s ease-out forwards;
}

/* ---------- 标题 ---------- */
.reveal-head { position: relative; z-index: 2; text-align: center; margin: 0 0 4px; }
.reveal-title {
  margin: 6px 0 10px;
  font-family: var(--font-letter);
  font-size: clamp(1.8rem, 1.3rem + 2.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.25;
  color: #fff3dc;
  text-shadow: 0 0 26px rgba(255, 190, 102, 0.45), 0 3px 0 rgba(3, 5, 22, 0.6);
  text-wrap: balance;
}
.reveal-head__tags { display: flex; justify-content: center; align-items: center; gap: 8px; }
.ai-tag--dark { color: var(--sky-muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); margin-top: 0; }

/* ---------- 对比卡（截图用） ---------- */
.compare { padding: 18px 14px 16px; }
.compare__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; align-items: stretch; position: relative; }
.compare__grid::after {
  content: "→";
  position: absolute;
  left: 40%; top: 48%;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
  color: var(--paper-hi);
  background: var(--clay);
  box-shadow: 0 2px 0 var(--ink);
  z-index: 2;
}
.compare__label {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: var(--text-2xs);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--paper-hi);
  background: var(--ink-soft);
}
.compare__label--got { background: var(--ember-600); }
.compare__wish {
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  border: 2px dashed rgba(43, 28, 24, 0.35);
  border-radius: 12px;
  background: #fffaf0;
  rotate: -1.5deg;
}
.compare__wish-text {
  flex: 1;
  margin: 0;
  font-family: var(--font-letter);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
}
.compare__by { margin-top: 8px; font-size: var(--text-2xs); color: var(--ink-faint); text-align: right; }
.compare__got { display: flex; flex-direction: column; }
.compare__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #10153a;
  box-shadow: 0 3px 0 var(--ink);
}
.compare__figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ai-tag--on-img {
  position: absolute;
  right: 6px; bottom: 6px;
  margin: 0;
  padding: 1px 6px;
  color: #fff;
  background: rgba(8, 10, 30, 0.55);
  box-shadow: none;
}
.compare__name {
  margin: 8px 0 0;
  font-family: var(--font-letter);
  font-size: var(--text-lg);
  font-weight: 900;
  line-height: 1.3;
  color: var(--clay);
  text-align: center;
  text-wrap: balance;
}
.compare__tagline {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: var(--text-base);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  background: var(--ember-300);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ---------- 说明书 ---------- */
.manual__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.manual__head .paper__title { margin-bottom: 8px; }
.manual__head .ai-tag { margin-top: 0; }
.manual__product { margin: 0 0 12px; font-size: var(--text-xs); font-weight: 700; color: var(--ink-soft); }
.manual__list { margin: 0; display: grid; grid-template-columns: 68px 1fr; gap: 10px 10px; font-size: var(--text-sm); line-height: 1.55; }
.manual__list dt {
  align-self: start;
  padding: 1px 0;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 900;
  text-align: center;
  color: var(--paper-hi);
  background: var(--clay);
}
.manual__list dd { margin: 0; font-weight: 600; }
.manual__list ol { margin: 0; padding-left: 1.2em; }

/* ---------- 炼制家谱 ---------- */
.family__list { list-style: none; margin: 4px 0 0; padding: 0; }
.family__step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding-bottom: 14px; }
.family__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 16px; top: 34px; bottom: 0;
  border-left: 2px dashed rgba(154, 70, 50, 0.4);
}
.family__avatar {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
  background: #a8d8ff;
  overflow: hidden;
}
.family__step:nth-child(3n+2) .family__avatar { background: #c9b8ff; }
.family__step:nth-child(3n) .family__avatar { background: #b9f0c5; }
.family__avatar.is-spirit { background: #2a2350 !important; }
.family__avatar.is-spirit img { width: 26px; height: auto; }
.family__who, .family__became { margin: 0; font-size: var(--text-sm); line-height: 1.5; }
.family__became { color: var(--ink-soft); }
.family__became b { color: var(--clay); font-family: var(--font-letter); }
.mini-badge { padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 900; vertical-align: 1px; }
.mini-badge--rare { color: #fff; background: #8a5cff; }
.mini-badge--legend { color: var(--ink); background: var(--legend); }

/* ---------- 猜测 vs 结果 ---------- */
.guessvs { display: grid; gap: 8px; text-align: center; }
.guessvs__row { padding: 12px; border-radius: 14px; background: rgba(43, 28, 24, 0.06); }
.guessvs__row--truth { background: var(--ember-300); box-shadow: inset 0 0 0 2px var(--ink); }
.guessvs__label { font-size: var(--text-2xs); font-weight: 900; letter-spacing: 0.12em; color: var(--ink-soft); }
.guessvs__text { margin: 4px 0 0; font-family: var(--font-letter); font-size: var(--text-lg); font-weight: 900; }
.guessvs__vs {
  justify-self: center;
  padding: 2px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  font-size: var(--text-xs);
  color: #fff;
  background: var(--clay);
  rotate: -4deg;
}
.reveal-actions { margin-top: 24px; position: relative; z-index: 2; }
.btn.is-static { cursor: default; opacity: 0.7; }

/* ---------- 海报弹层 ---------- */
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px 16px;
  background: rgba(4, 6, 22, 0.82);
  animation: fade-in 0.2s ease-out;
}
.modal-open, .modal-open body { overflow: hidden; }
.poster-modal__panel { position: relative; width: min(100%, 420px); }
.poster-modal__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 6px 0 var(--ink);
}
.poster-modal__frame img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.25s; }
.poster-modal__frame img.is-ready { opacity: 1; }
.poster-modal__loading { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--ink-soft); }
.poster-modal__hint { margin: 14px 0 0; text-align: center; font-weight: 800; color: var(--sky-text); }
.poster-modal__close {
  position: absolute;
  top: -14px; right: -8px;
  z-index: 2;
  width: 40px; height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  background: var(--paper-hi);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 还在冒烟 ---------- */
.smoke-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.smoke-dots i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: smoke-dot 1.2s ease-in-out infinite;
}
.smoke-dots i:nth-child(2) { animation-delay: 0.2s; }
.smoke-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes smoke-dot { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-6px); } }
