/*
 * CodexHub.css —— 图鉴选择弹窗。
 * 外壳沿用 GeneralCodex.css 的 general-codex-shell / window / close，
 * 这里把窗口压矮成一张「选择卡」并排两张入口卡。
 */
#codex-hub-overlay {
  --general-codex-scale: 1;
  position: fixed;
  z-index: 100017;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(24, 17, 12, 0.72);
  color: #3a2519;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#codex-hub-overlay.is-visible { display: flex; }
#codex-hub-overlay * { box-sizing: border-box; letter-spacing: 0; }

.codex-hub-window {
  width: 460px;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0 auto;
  padding: 72px 34px 34px;
  cursor: default;
}

.codex-hub-window h2 {
  margin: 4px 0 6px;
  font-size: 40px;
}

.codex-hub-tip {
  margin: 0 0 22px;
  color: #8a5a3a;
  font-size: 18px;
  text-align: center;
}

.codex-hub-cards {
  display: flex;
  gap: 16px;
}

.codex-hub-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 18px 10px 16px;
  border: 3px solid #4b2b1d;
  border-radius: 12px;
  background: rgba(255, 243, 201, 0.42);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.12s ease;
}

.codex-hub-card:hover { background: rgba(255, 243, 201, 0.68); }
.codex-hub-card:active { transform: translateY(2px); }

.codex-hub-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 4px solid #4b2b1d;
  border-radius: 50%;
  background: #a94435;
  color: #fff3c9;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.codex-hub-mark-enemy {
  border-color: #23331f;
  background: #54683f;
  color: #f2f7e8;
}

.codex-hub-card strong {
  font-size: 26px;
  line-height: 1.2;
}

.codex-hub-card em {
  color: #8a5a3a;
  font-size: 15px;
  font-style: normal;
  line-height: 1.2;
  text-align: center;
}
