/* 皮哒莉漫画角色面板与三格漫画条 */

.hero-manga-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-panel {
  position: relative;
  height: 490px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--sky);
}
.manga-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(rgba(110, 193, 228, .28) 1.5px, transparent 1.5px),
    linear-gradient(180deg, #dff3fd 0%, #f4fbff 62%, #ffffff 100%);
  background-size: 14px 14px, 100% 100%;
  pointer-events: none;
}
.manga-caption {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  writing-mode: vertical-rl;
  padding: 10px 7px;
  background: #fff;
  border: var(--border);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .15em;
  color: var(--ink);
  box-shadow: 3px 3px 0 rgba(27, 27, 32, .14);
}
.panel-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.hero-char {
  position: relative;
  z-index: 1;
  height: 92%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  transition: transform .2s ease;
}
.hero-char.is-chibi { height: 78%; margin-bottom: 14px; }
.hero-char.is-girl { height: 93%; }
.hero-char.is-oneesan { height: 95%; }

.form-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.switcher-hint { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.switch-pill {
  padding: 6px 14px;
  background: var(--paper);
  border: var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s ease, background .1s ease;
}
.switch-pill:hover { background: var(--sky); color: var(--ink); }
.switch-pill.is-active {
  background: var(--coral);
  color: #fff;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- 三格漫画条 ---------- */
.comic-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.char-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.char-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 var(--ink);
}
.char-card.is-active {
  box-shadow: 6px 6px 0 var(--coral);
}
.card-state {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.char-card.is-active .card-state { color: var(--coral); }

.char-stage {
  position: relative;
  height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 58px 16px 10px;
  border-bottom: var(--border);
  overflow: hidden;
}
.char-stage.is-warm {
  background:
    radial-gradient(rgba(232, 90, 79, .14) 1.5px, transparent 1.5px),
    linear-gradient(180deg, #fff6e6 0%, #ffffff 100%);
  background-size: 14px 14px, 100% 100%;
}
.char-stage.is-sky {
  background:
    radial-gradient(rgba(110, 193, 228, .22) 1.5px, transparent 1.5px),
    linear-gradient(180deg, #e5f5fd 0%, #ffffff 100%);
  background-size: 14px 14px, 100% 100%;
}
.char-stage.is-mint {
  background:
    radial-gradient(rgba(82, 183, 136, .16) 1.5px, transparent 1.5px),
    linear-gradient(180deg, #eaf8f1 0%, #ffffff 100%);
  background-size: 14px 14px, 100% 100%;
}
.char-stage img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
}

.mini-bubble {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  padding: 7px 12px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  box-shadow: 2px 2px 0 rgba(27, 27, 32, .12);
}

.char-foot {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}
.char-foot h3 { font-size: 20px; font-weight: 900; }
.char-foot p { font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
.char-foot .tags { margin-top: auto; }

@media (max-width: 960px) {
  .comic-strip { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .hero-panel { height: 420px; }
}
@media (max-width: 560px) {
  .hero-panel { height: 370px; }
  .manga-caption { font-size: 12px; padding: 8px 6px; }
}
