/* 电子占卦字符化：龟甲局部字符/网格叠层样式，2026-09-11 起随 index.html 接入生产。
   .ritual-shell-glyphs 这个 canvas 由 js/ritual-stage.js 在 shellGlyphs 选项开启
   （生产两条初始化路径均已传入）时创建。 */
.ritual-shell-glyphs {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.ritual-decode-scan {
  position: absolute;
  z-index: 2;
  top: 8%;
  left: 18%;
  right: 18%;
  height: 2px;
  opacity: 0;
  pointer-events: none;
  background: var(--figma-accent);
  box-shadow: 0 1px 5px color-mix(in srgb, var(--figma-accent) 70%, transparent);
}
.ritual-decode-scan::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 54px;
  background: linear-gradient(to top, color-mix(in srgb, var(--figma-accent) 24%, transparent), transparent);
  clip-path: polygon(0 100%, 100% 100%, 88% 0, 12% 0);
}
.ritual-decode-scan::after {
  content: '';
  position: absolute;
  inset: -4px -8px;
  border-inline: 1px solid color-mix(in srgb, var(--figma-line) 72%, transparent);
}
.ritual-decoding .ritual-decode-scan {
  animation: ritual-decode-sweep 820ms steps(18, end) both;
  will-change: transform, opacity;
}
@keyframes ritual-decode-sweep {
  0% { opacity: 0; transform: translateY(0); }
  8% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateY(340px); }
}
@media (max-width: 640px) {
  @keyframes ritual-decode-sweep {
    0% { opacity: 0; transform: translateY(0); }
    8% { opacity: 1; }
    82% { opacity: 1; }
    100% { opacity: 0; transform: translateY(252px); }
  }
}
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  .ritual-shell-glyphs,
  .ritual-decode-scan { display: none; }
}
