/* 図鑑・フォトコレクション */
.tab-switch {
  display: flex; gap: 6px; margin-top: 10px;
  background: var(--c-leaf-mist); border-radius: 999px; padding: 4px;
}
.tab-switch button {
  flex: 1; border-radius: 999px; padding: 9px 0;
  font-size: 0.82rem; font-weight: 800; color: var(--c-ink-soft);
}
.tab-switch button.is-active { background: var(--c-paper); color: var(--c-leaf-deep); box-shadow: var(--shadow-card); }

.dex-progress {
  margin: 12px 2px 4px; font-size: 0.74rem; font-weight: 800; color: var(--c-brown-deep);
}
.dex-progress .bar { height: 9px; background: var(--c-leaf-mist); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.dex-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-leaf), var(--c-leaf-deep)); border-radius: 99px; transition: width 0.6s ease; }

.dex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.dex-cell {
  background: var(--c-paper); border-radius: var(--r-md);
  box-shadow: var(--shadow-card); padding: 8px 4px 7px;
  text-align: center; position: relative;
}
.dex-cell__no { position: absolute; top: 5px; left: 7px; font-size: 0.56rem; font-weight: 900; color: var(--c-ink-soft); }
.dex-cell img { height: 62px; margin: 4px auto 2px; object-fit: contain; }
.dex-cell__name { font-size: 0.64rem; font-weight: 800; color: var(--c-brown-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.dex-cell--unknown .dex-cell__name { color: var(--c-ink-soft); }
.dex-cell--future { background: var(--c-leaf-mist); box-shadow: none; }
.dex-cell--future .q { font-size: 1.7rem; height: 62px; display: flex; align-items: center; justify-content: center; color: var(--c-ink-soft); opacity: 0.55; margin: 4px 0 2px; }
.dex-cell__count {
  position: absolute; top: 4px; right: 6px;
  background: var(--c-leaf-pale); color: var(--c-leaf-deep);
  font-size: 0.56rem; font-weight: 900; border-radius: 999px; padding: 1px 6px;
}

/* 詳細モーダル */
.dex-detail { text-align: center; }
.dex-detail img.card { border-radius: 12px; box-shadow: var(--shadow-card); }
.dex-detail .hint {
  background: var(--c-gold-pale); border-radius: 12px; padding: 9px 12px;
  font-size: 0.74rem; font-weight: 800; color: #8a6420; margin-top: 10px;
}
.dex-detail .desc {
  text-align: left; font-size: 0.8rem; margin-top: 10px;
  background: var(--c-leaf-mist); border-radius: 12px; padding: 12px;
}
.dex-detail .sil-stage { height: 130px; display: flex; align-items: center; justify-content: center; }
.dex-detail .sil-stage img { height: 120px; }

/* フォト */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.photo-cell {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-card); aspect-ratio: 3 / 4; background: var(--c-paper);
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-cell--locked img { filter: blur(7px) saturate(0.6) brightness(1.05); transform: scale(1.1); }
.photo-cell__lock {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  background: rgba(246, 243, 235, 0.35);
  font-size: 0.66rem; font-weight: 900; color: var(--c-brown-deep);
}
.photo-cell__lock .price { background: var(--c-paper); border-radius: 999px; padding: 2px 9px; box-shadow: var(--shadow-card); }
.photo-view img { border-radius: 12px; }
