/* 特效層：全息反光、破殼前的分析過場 */

.dex__card.is-owned::after, .sheet--reveal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0.3;
  background: linear-gradient(115deg, transparent 30%, rgba(159, 227, 217, 0.7) 42%, rgba(245, 169, 200, 0.7) 50%, rgba(242, 211, 168, 0.7) 58%, transparent 70%);
  background-size: 250% 100%;
  animation: holo 4.5s ease-in-out infinite;
}
@keyframes holo { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.sheet--reveal { position: fixed; overflow: hidden; } /* 必須 fixed：relative 會讓彈窗跟著頁面捲動，捲到下面再破殼時卡片會跑到螢幕外 */

.analysis {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(60% 40% at 50% 45%, rgba(40, 18, 26, 0.75), rgba(8, 5, 7, 0.94));
  animation: analysis-in 0.35s ease both;
}
.analysis__grid {
  position: absolute; inset: 0; opacity: 0.22;
  background-image: linear-gradient(rgba(159, 227, 217, 0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 227, 217, 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 65%);
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 65%);
}
.analysis__scan {
  position: absolute; left: 0; right: 0; height: 120px; top: -120px;
  background: linear-gradient(180deg, transparent, rgba(159, 227, 217, 0.14) 80%, rgba(233, 255, 251, 0.5));
  animation: analysis-scan 2.6s ease-in-out infinite;
}
.analysis__box { position: relative; width: min(72vw, 300px); text-align: center; display: flex; flex-direction: column; gap: 10px; }
.analysis__en { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em; color: var(--hud); }
.analysis__title { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.24em; color: var(--ivory); }
.analysis__bar { height: 3px; background: rgba(159, 227, 217, 0.15); }
.analysis__fill { height: 100%; width: 0; background: var(--hud); box-shadow: 0 0 10px var(--hud); }
.analysis__pct { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--hud); }
@keyframes analysis-in { from { opacity: 0; } }
@keyframes analysis-scan { to { transform: translateY(calc(100vh + 120px)); } }
@media (prefers-reduced-motion: reduce) { .analysis__scan { display: none; } }
