/* Deep review's header (deep_progress.js), COPIED from the old phaseb.css "Deep Review extras":
 * a gold phase label, a stone trail in place of the total, a gold bloom from the counter every
 * 10 cards, and the milestone word (JP over a small EN gloss) rising off the counter. */
.dk-progress.is-deep { position: relative; }
.dk-phase-label.is-deep {
  --phase-tint: var(--gold);
  --phase-ink: var(--gold);
  background: rgba(212,166,74,0.10);
  border-color: rgba(212,166,74,0.28);
}

.dk-progress__num > .dk-stones { display: none; }
.dk-progress.is-deep #progress_total { display: none; }
.dk-progress.is-deep .dk-progress__num > .dk-stones { display: inline-flex; }
.dk-stones { align-items: center; gap: 5px; }
.dk-stones i { display: block; border-radius: 50%; background: var(--lav-purple-soft); }
.dk-stones i:nth-child(1) { width: 7px; height: 7px; opacity: .9; animation: pbStone 4.5s ease-in-out infinite; }
.dk-stones i:nth-child(2) { width: 5.5px; height: 5.5px; opacity: .6; }
.dk-stones i:nth-child(3) { width: 4px; height: 4px; opacity: .34; }
.dk-stones i:nth-child(4) { width: 3px; height: 3px; opacity: .16; }
@keyframes pbStone { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-2px); } }

.lvl-flash {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; z-index: 6;
  background: radial-gradient(circle, rgba(212,166,74,0.55), transparent 70%);
  animation: pbBloom 0.65s ease-out forwards;
}
@keyframes pbBloom {
  0% { opacity: .9; transform: translate(-50%, -50%) scale(.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(10); }
}

.dk-milestone {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: 0; pointer-events: none; z-index: 7;
}
.dk-milestone__jp { font: 600 16px/1 var(--lav-jp); }
.dk-milestone__en { font: 600 10px/1 var(--lav-ui); letter-spacing: .4px; opacity: .72; }
.dk-milestone.is-shown { animation: pbMsText 1.6s ease-out forwards; }
@keyframes pbMsText {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.9); }
  16% { opacity: 1; transform: translate(-50%, -1px) scale(1.04); }
  24% { transform: translate(-50%, -2px) scale(1); }
  68% { opacity: 1; transform: translate(-50%, -8px); }
  100% { opacity: 0; transform: translate(-50%, -22px); }
}

@media (prefers-reduced-motion: reduce) {
  .lvl-flash { display: none; }
  .dk-stones i { animation: none; }
}
