/* 평생사주·정통사주 공용 로딩 화면. 가운데 카드 한 장에 브랜드 → 캐릭터 → 현재 단계 → 진행률 → 안내 순서로 둔다. */
/* 상단 헤더(public/style.css .site-header)와 같은 폭·같은 좌우 여백으로, 헤더 바로 아래에서 시작한다.
   떠 있는 카드를 두면 헤더 끝선과 어긋나 보여서, 헤더와 이어지는 평평한 화면 한 장으로 둔다. */
.premium-loading-screen {
  position: fixed;
  z-index: 30;
  top: var(--site-header-height, 0px);
  bottom: 0;
  left: 50%;
  box-sizing: border-box;
  width: min(100%, var(--app-max-width));
  transform: translateX(-50%);
  display: grid;
  align-items: center;
  justify-items: stretch;
  padding: 24px var(--app-gutter, 20px) max(24px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(90% 55% at 50% 30%, color-mix(in srgb, var(--report-accent-soft, #f2ead9) 70%, transparent) 0%, transparent 72%),
    rgb(255 254 251);
  overflow-y: auto;
}
.premium-loading-card {
  box-sizing: border-box;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.premium-loading-brand {
  margin: 0 0 4px;
  color: var(--report-accent, #8a7650);
  font: 600 12px/1.4 var(--serif, serif);
  letter-spacing: .28em;
}
.premium-loading-character {
  width: 132px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--report-surface, #fff);
  border-radius: 50%;
  background: var(--report-accent-soft, #edf2f8);
  box-shadow: 0 10px 28px rgb(48 61 79 / 14%);
  animation: loading-float 4.5s ease-in-out infinite;
}
.premium-loading-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.premium-loading-status {
  margin: 10px 0 0;
  color: var(--report-ink, #2d302d);
  font: 700 18px/1.5 var(--serif, serif);
  letter-spacing: -.02em;
  word-break: keep-all;
}
.premium-loading-detail {
  min-height: 3.4em;
  max-width: 26em;
  margin: 0;
  color: var(--report-muted, #6b7280);
  font: 13.5px/1.7 var(--sans, sans-serif);
  word-break: keep-all;
}
.premium-loading-progress {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--report-line, #e5eaf0);
}
.premium-loading-progress span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--report-accent, #8a7650), var(--report-accent-strong, #6b5a3a));
  transition: width .45s ease;
}
/* 진행 막대 위를 은은하게 흐르는 빛 — 멈춰 보여도 일하는 중임을 알린다. */
.premium-loading-progress span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 45%), transparent);
  transform: translateX(-100%);
  animation: loading-shimmer 1.8s ease-in-out infinite;
}
.premium-loading-progress-label {
  color: var(--report-accent-strong, #6b5a3a);
  font: 700 13px/1 var(--sans, sans-serif);
  font-variant-numeric: tabular-nums;
}
.premium-loading-hint {
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--report-line, #e5eaf0);
  color: var(--report-meta, #8a8f98);
  font: 12px/1.7 var(--sans, sans-serif);
  word-break: keep-all;
}
.premium-loading-card button { margin-top: 6px; }
body.report-loading-active { overflow: hidden; }
@keyframes loading-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes loading-shimmer {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .premium-loading-character, .premium-loading-progress span::after { animation: none; }
  .premium-loading-progress span { transition: none; }
}
.report-submission-receipt{animation:none;background:#fffdf7}.report-receipt-card{width:100%;display:grid;justify-items:center;gap:26px;text-align:center;padding:24px 10px;box-sizing:border-box}.report-receipt-message{max-width:340px;color:#66553f;font:600 20px/1.8 var(--serif,serif);word-break:keep-all;margin:0}.report-receipt-home{display:inline-block;background:#756047;color:#fffaf0;border-radius:12px;padding:13px 28px;text-decoration:none;font:600 15px/1.4 var(--sans,sans-serif)}.report-receipt-home:focus-visible{outline:3px solid #b19b78;outline-offset:4px}.report-submitted .premium-floating-actions,.report-submitted .part-nav{display:none!important}
html:not([data-report-internal]) .premium-loading-character,html:not([data-report-internal]) .premium-loading-progress,html:not([data-report-internal]) .premium-loading-progress-label{display:none}

/* Completion and pending states use the same hierarchy as the reader. */
.premium-loading-status { font-size: 21px; line-height: 1.55; }
.premium-loading-detail { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.premium-loading-hint { color: var(--ui-muted,#72685c); font-size: 13px; }
.report-receipt-card { gap: 24px; padding: 32px 20px; border: 1px solid var(--ui-line,#ded5c7); border-radius: var(--ui-radius,16px); background: var(--ui-surface,#fffdf8); }
.report-receipt-message { color: var(--ui-ink,#302b26); font-size: 22px; line-height: 1.65; letter-spacing: -.035em; overflow-wrap: anywhere; }
.report-receipt-home { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; box-sizing: border-box; padding: 12px 24px; background: var(--ui-action,#55312d); border-radius: var(--ui-control-radius,12px); }
.report-receipt-home:hover { background: var(--ui-action-hover,#442520); }
@media(max-width:360px){.report-receipt-card{padding:28px 16px}.report-receipt-message{font-size:20px}}
.report-receipt-sub{max-width:340px;margin:0;color:#7a7062;font:400 14px/1.8 var(--sans,sans-serif);word-break:keep-all}.report-receipt-links{display:grid;justify-items:center;gap:12px}.report-receipt-archive{color:#6b4e2e;font:600 14px/1.4 var(--sans,sans-serif);text-decoration:underline}

/* 풀이 접수 안내: 인장, 제목, 전달 시각, 충전 안내 상자 */
.report-receipt-card { gap: 14px; }
.report-receipt-seal { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid #a3392b; border-radius: 50%; color: #a3392b; font: 700 26px/1 var(--serif, serif); transform: rotate(-8deg); background: #fff8ec; }
.report-receipt-message { font-weight: 800; font-size: 21px; }
.report-receipt-when { margin: -4px 0 0; color: #5c4b3a; font: 500 15px/1.7 var(--sans, sans-serif); word-break: keep-all; }
.report-receipt-when b { color: #2f241a; font-weight: 800; }
.report-receipt-gift { display: grid; justify-items: center; gap: 6px; width: 100%; max-width: 360px; box-sizing: border-box; margin-top: 6px; padding: 18px 16px 16px; border: 1px solid #e0d4bb; border-radius: 8px; background: linear-gradient(160deg, #fffdf8, #f7f0e1); }
.report-receipt-coin { position: relative; width: 34px; height: 34px; border: 2px solid #9b7440; border-radius: 50%; background: #d8b772; box-shadow: inset 0 0 0 4px rgba(255,245,213,.38); }
.report-receipt-coin::after { content: ""; position: absolute; inset: 11px; border: 1px solid #896434; background: #fffaf1; }
.report-receipt-gift-text { margin: 0; color: #3a2c20; font: 600 16px/1.6 var(--sans, sans-serif); word-break: keep-all; }
.report-receipt-gift-text b { color: #a3392b; font-weight: 800; }
.report-receipt-gift-sub { color: #7a6548; font: 500 13px/1.6 var(--sans, sans-serif); word-break: keep-all; }
