/* ===== プログレッシブローディング ===== */
.hidden { display: none !important; }

/* スケルトンシマー */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--chip-bg) 25%, var(--chip-bg-hover) 50%, var(--chip-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 8px;
}
.skeleton-line { width: 100%; height: 14px; }
.skeleton-line-short { width: 60%; height: 14px; }
.skeleton-line-xs { width: 40%; height: 12px; }
.skeleton-chip { width: 60px; height: 22px; border-radius: 9999px; }
.skeleton-card {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  margin-bottom: 8px;
}
.skeleton-card-inner { display: flex; flex-direction: column; gap: 10px; }

/* タブバッジ：シマーローディング */
.tab-count-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--chip-bg) 25%, var(--chip-bg-hover) 50%, var(--chip-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

/* タブ完了ハイライトフラッシュ */
@keyframes tabFlash {
  0%   { background-color: transparent; }
  30%  { background-color: rgba(31,170,134,.12); }
  100% { background-color: transparent; }
}
.tab-flash {
  animation: tabFlash 0.8s ease-out;
}

/* タブバッジ：カウントポップイン */
@keyframes countPop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.tab-count-appear {
  animation: countPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 完了ヒント */
.completion-hint {
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--ok);
  transition: opacity .5s;
}

/* 結果カード入場アニメ */
@keyframes resultSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-animate-in {
  animation: resultSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

/* 通知ドット（別タブに新結果が来た時） */
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .6; }
}
.res-tab .new-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pri);
  position: absolute;
  top: 2px;
  right: 2px;
  animation: countPop 0.35s cubic-bezier(0.22, 1, 0.36, 1), dotPulse 2s ease-in-out 0.4s infinite;
}

/* 左ペインスケルトン */
.left-skeleton-text {
  padding: 16px;
  border-radius: 12px;
  background: var(--chip-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}


