@font-face {
  font-family: "fzlant";
  src: url("{{_res_path}}ttf/fzlant.D5FI9Et0.ttf");
}

@font-face {
  font-family: "dundun";
  src: url("{{_res_path}}ttf/dundun.xHd_Ee5-.woff2");
}

:root {
  --ink: #2c2318;
  --muted: #7e6a58;
  --line: rgba(118, 94, 67, 0.16);
  --paper: rgba(255, 252, 246, 0.96);
  --paper-strong: rgba(255, 255, 255, 0.98);
  --accent: #2f6fda;
  --accent-2: #f1b33f;
}

* {
  box-sizing: border-box;
}

body.bwiki-body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 222, 158, 0.32), transparent 30%),
    linear-gradient(180deg, #f8f2e8 0%, #ece4d6 100%);
  color: var(--ink);
  font-family: "fzlant", "Microsoft YaHei", sans-serif;
}

.bwiki-shell {
  width: 920px;
  margin: 0 auto;
  padding: 20px 16px 24px;
}

.hero-card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 14px 32px rgba(72, 52, 28, 0.07);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  padding: 20px;
}

.hero-kicker,
.panel-title,
.hero-no,
.skill-level {
  font-family: "dundun", "fzlant", sans-serif;
}

.hero-kicker {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 1px;
}

.hero-title-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}

.hero-icon-wrap {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,240,230,0.96));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-icon-wrap img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.hero-no {
  font-size: 24px;
  color: #8a6a4b;
}

.hero-name {
  margin: 4px 0 0;
  font-size: 42px;
  line-height: 1.05;
  word-break: break-word;
}

.hero-form {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 111, 218, 0.12);
  color: var(--accent);
  font-size: 16px;
}

.hero-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.type-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(42, 34, 24, 0.06);
  border: 1px solid rgba(42, 34, 24, 0.08);
  font-size: 17px;
}

.hero-desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.hero-visual {
  min-height: 240px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(255,255,255,0.98), rgba(244,236,224,0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.hero-visual img {
  width: 100%;
  max-width: 210px;
  max-height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(44, 35, 24, 0.16));
}

.wiki-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  padding: 18px 20px;
}

.evo-panel,
.skills-panel {
  grid-column: 1 / -1;
}

.panel-title {
  margin-bottom: 14px;
  font-size: 25px;
}

.stats-total {
  margin-bottom: 16px;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
}

.stats-bars,
.trait-list {
  display: grid;
  gap: 10px;
}

.stat-row {
  display: grid;
  grid-template-columns: 52px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.stat-label,
.stat-value {
  font-size: 17px;
}

.stat-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(42, 34, 24, 0.08);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
}

.trait-card,
.skill-card,
.evo-card {
  background: var(--paper-strong);
  border: 1px solid rgba(42, 34, 24, 0.06);
  border-radius: 20px;
}

.trait-card {
  padding: 16px 18px;
}

.trait-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.trait-name {
  font-size: 20px;
  font-weight: 700;
}

.trait-type {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(241, 179, 63, 0.18);
  color: #8b5f00;
  font-size: 15px;
}

.trait-effect {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.evo-track {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.evo-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.evo-card {
  width: 160px;
  padding: 14px;
}

.evo-card.current {
  border-color: rgba(47, 111, 218, 0.35);
  box-shadow: 0 10px 24px rgba(47, 111, 218, 0.12);
}

.evo-image {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evo-image img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.evo-no {
  margin-top: 6px;
  color: #8a6a4b;
  font-size: 14px;
}

.evo-name {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}

.evo-condition {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.evo-arrow {
  color: #8a6a4b;
  font-size: 28px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill-card {
  padding: 14px 16px;
}

.skill-top {
  display: flex;
  gap: 12px;
}

.skill-level {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #76a0f3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.skill-main {
  min-width: 0;
}

.skill-name {
  font-size: 20px;
  font-weight: 700;
  word-break: break-word;
}

.skill-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
}

.skill-body {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: #4d4032;
  white-space: pre-wrap;
  word-break: break-word;
}

.wiki-footer {
  margin-top: 18px;
  padding: 14px 6px 0;
  border-top: 1px solid rgba(113, 96, 78, 0.16);
  display: grid;
  gap: 6px;
  color: #7a6757;
  font-size: 15px;
  word-break: break-word;
}
