/* キャラ画像 — 金色スポットライト */
.char-spotlight {
  position: relative;
  width: min(300px, 88vw);
  margin: 0 auto 18px;
  padding: 8px 0 32px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 230px;
}

.char-spotlight__beam {
  position: absolute;
  inset: -8px 0 0;
  background:
    radial-gradient(ellipse 50% 72% at 50% 0%,
      rgba(255, 248, 220, 0.28) 0%,
      rgba(255, 215, 100, 0.12) 38%,
      transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.char-spotlight__pool {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 78%;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    rgba(255, 215, 95, 0.62) 0%,
    rgba(255, 185, 55, 0.32) 42%,
    rgba(200, 140, 40, 0.1) 68%,
    transparent 78%);
  filter: blur(3px);
  z-index: 0;
  pointer-events: none;
}

.char-spotlight__ring {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 62%;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 228, 160, 0.45);
  box-shadow:
    0 0 18px rgba(255, 200, 80, 0.45),
    0 0 36px rgba(255, 180, 60, 0.2),
    inset 0 0 10px rgba(255, 240, 200, 0.25);
  z-index: 1;
  pointer-events: none;
}

.char-spotlight__img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(220px, 70vw);
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 28px rgba(255, 200, 90, 0.38));
}

.char-spotlight--compact {
  min-height: 200px;
  margin-bottom: 10px;
  padding-bottom: 26px;
}

.char-spotlight--compact .char-spotlight__img {
  width: min(200px, 58vw);
  max-height: 240px;
}

.type-profile {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dex-profile {
  gap: clamp(28px, 4vw, 40px);
}

.dex-chapter {
  position: relative;
}

.dex-chapter--secret {
  padding: clamp(18px, 3vw, 24px);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10, 8, 26, 0.94), rgba(22, 14, 42, 0.9));
  border: 1px solid rgba(140, 100, 200, 0.28);
  box-shadow:
    0 0 32px rgba(90, 50, 160, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dex-chapter__header {
  text-align: center;
  margin-bottom: clamp(16px, 2.5vw, 22px);
}

.dex-chapter__title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 14px);
}

.dex-chapter__deco {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: clamp(80px, 12vw, 140px);
}

.dex-chapter__deco--right {
  flex-direction: row-reverse;
}

.dex-chapter__deco-line {
  flex: 1;
  height: 1px;
  min-width: 0;
}

.dex-chapter__deco--left .dex-chapter__deco-line {
  background: linear-gradient(90deg, transparent, rgba(232, 190, 92, 0.8));
}

.dex-chapter__deco--right .dex-chapter__deco-line {
  background: linear-gradient(90deg, rgba(232, 190, 92, 0.8), transparent);
}

.dex-chapter--secret .dex-chapter__deco--left .dex-chapter__deco-line {
  background: linear-gradient(90deg, transparent, rgba(180, 150, 230, 0.65));
}

.dex-chapter--secret .dex-chapter__deco--right .dex-chapter__deco-line {
  background: linear-gradient(90deg, rgba(180, 150, 230, 0.65), transparent);
}

.dex-chapter__deco-gem {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff5d8 0%, #f5d66b 55%, #d4ae5b 100%);
  box-shadow: 0 0 8px rgba(245, 214, 107, 0.45);
}

.dex-chapter--secret .dex-chapter__deco-gem {
  background: linear-gradient(135deg, #e8dcff 0%, #b898e8 55%, #8a68c8 100%);
  box-shadow: 0 0 8px rgba(160, 120, 220, 0.4);
}

.dex-chapter__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #fff5d8;
  text-shadow: 0 0 12px rgba(255, 232, 166, 0.2);
  white-space: nowrap;
}

.dex-chapter--secret .dex-chapter__title {
  color: #e8dcff;
  text-shadow: 0 0 12px rgba(180, 150, 255, 0.22);
}

.dex-chapter__subtitle {
  margin: 8px 0 0;
  font-size: clamp(11px, 1.4vw, 13px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.dex-chapter__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .dex-chapter__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.dex-intro {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(12, 16, 40, 0.72);
  border: 1px solid rgba(217, 179, 92, 0.24);
  position: relative;
}

.dex-intro::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(245, 214, 107, 0.45);
  box-shadow: 12px 0 0 rgba(245, 214, 107, 0.25), 24px 0 0 rgba(245, 214, 107, 0.15);
}

.dex-intro__line {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 245, 255, 0.86);
}

.dex-intro__line + .dex-intro__line {
  margin-top: 8px;
}

.dex-card {
  position: relative;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(12, 16, 40, 0.82);
  border: 1px solid rgba(217, 179, 92, 0.22);
  overflow: hidden;
}

.dex-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245, 214, 107, 0.2);
  pointer-events: none;
}

.dex-card--featured {
  padding: 16px 18px;
  border-color: rgba(217, 179, 92, 0.3);
  background: linear-gradient(160deg, rgba(14, 18, 44, 0.9), rgba(10, 12, 32, 0.88));
}

.dex-card--compact {
  padding: 11px 14px;
}

.dex-card--compact .dex-card__title {
  font-size: 14px;
}

.dex-card--compact .dex-card__body {
  font-size: 13px;
  line-height: 1.6;
}

.dex-card--secret {
  background: rgba(16, 10, 34, 0.88);
  border-color: rgba(150, 110, 210, 0.26);
}

.dex-card--secret::after {
  background: rgba(180, 150, 255, 0.22);
}

.dex-card__label {
  margin: 0 0 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(245, 214, 107, 0.72);
}

.dex-card--secret .dex-card__label {
  color: rgba(190, 165, 240, 0.75);
}

.dex-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff5d8;
}

.dex-card--secret .dex-card__title {
  color: #ece4ff;
}

.dex-card__ornament {
  display: block;
  width: 36px;
  height: 1px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, rgba(232, 190, 92, 0.55), transparent);
}

.dex-card--secret .dex-card__ornament {
  background: linear-gradient(90deg, rgba(170, 140, 230, 0.5), transparent);
}

.dex-card__body {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 245, 255, 0.76);
}

.dex-card__body p {
  margin: 0;
}

.dex-card__line + .dex-card__line {
  margin-top: 8px;
}

.dex-card__voice {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  font-style: italic;
  color: rgba(255, 228, 190, 0.9);
}

.dex-card__voice + .dex-card__voice {
  margin-top: 8px;
}

.dex-card__body a {
  font-weight: 500;
}

.type-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
  margin-bottom: 4px;
}

.type-code__part {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(179, 136, 255, 0.22);
}

.type-code__letter {
  font-size: 15px;
  font-weight: 700;
  color: #fff8d0;
  letter-spacing: 0.04em;
}

.type-code__label {
  font-size: 11px;
  color: rgba(240, 245, 255, 0.65);
}

.type-code__sep {
  color: rgba(240, 245, 255, 0.35);
  font-size: 14px;
  padding: 0 2px;
}

.type-summary {
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(12, 16, 40, 0.75);
  border: 1px solid rgba(217, 179, 92, 0.28);
}

.type-summary__line {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240, 245, 255, 0.88);
}

.type-summary__line + .type-summary__line {
  margin-top: 10px;
}

.type-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.type-stats__card {
  background: rgba(12, 16, 40, 0.82);
  border: 1px solid rgba(217, 179, 92, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
}

.type-stats__card h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #4cd3ff;
  letter-spacing: 0.04em;
}

.type-stats__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(240, 245, 255, 0.72);
}

.type-stats__card p a {
  font-weight: 500;
}

.type-human {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.type-human__card {
  background: rgba(20, 14, 36, 0.88);
  border: 1px solid rgba(255, 180, 120, 0.22);
  border-radius: 8px;
  padding: 14px 16px;
}

.type-human__card h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #ffb878;
  letter-spacing: 0.04em;
}

.type-human__line {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(240, 245, 255, 0.76);
}

.type-human__line + .type-human__line {
  margin-top: 8px;
}

.type-human__card--voice {
  border-color: rgba(255, 200, 140, 0.28);
}

.type-human__voice {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  color: rgba(255, 228, 190, 0.9);
}

.type-human__voice + .type-human__voice {
  margin-top: 8px;
}

.type-stories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.type-story {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 22, 48, 0.9), rgba(10, 12, 32, 0.95));
  border: 1px solid rgba(179, 136, 255, 0.18);
}

.type-story__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #e8d090;
  line-height: 1.4;
}

.type-story__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 245, 255, 0.78);
}

.type-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.type-footer-links__item {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  text-align: center;
  color: rgba(240, 245, 255, 0.82);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(179, 136, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.type-footer-links__item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(217, 179, 92, 0.35);
  text-decoration: none;
}
