/* 名人堂：Q 版糖果风，依赖 styles.css 的色板、顶栏与页脚。悬停效果只给鼠标设备。 */
.fame-main { position: relative; z-index: 1; flex: 1; width: min(100% - 28px, 1120px); margin: 0 auto 40px; padding-top: 18px; }

.fame-hero {
  position: relative;
  padding: 26px 20px 18px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, .7) 0 22px, transparent 23px),
    radial-gradient(circle at 85% 70%, rgba(255, 255, 255, .55) 0 30px, transparent 31px),
    linear-gradient(160deg, #fff1c2, #ffd6e8 55%, #d9ecff);
  border: 4px solid #fff;
  border-radius: 30px;
  box-shadow: var(--shadow-hard);
}
.fame-trophy { font-size: 54px; line-height: 1; animation: fame-bob 3.2s ease-in-out infinite; }
@keyframes fame-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
.fame-hero h1 {
  margin: 6px 0 4px;
  color: #ff9a2a;
  background: linear-gradient(180deg, #ffe37d, #ffb43a 50%, #ff8a1f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 0 0 #6b3a14) drop-shadow(-2px 0 0 #6b3a14) drop-shadow(0 2px 0 #6b3a14)
    drop-shadow(0 -2px 0 #6b3a14) drop-shadow(0 4px 0 #4a2610);
  font-family: var(--font-title);
  font-size: clamp(34px, 7vw, 50px);
  letter-spacing: 6px;
}
.fame-hero p { margin: 0 auto; max-width: 620px; color: #7b5a3a; font-weight: 700; }
.fame-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 6px; }
.fame-nav a {
  padding: 6px 14px;
  color: #8a4b12;
  background: #fff;
  border: 2px solid #ffe0b8;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(224, 106, 18, .15);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  touch-action: manipulation;
}
.fame-updated { margin-top: 6px !important; color: var(--muted) !important; font-size: 12.5px; font-weight: 600 !important; }

.fame-block {
  margin-top: 18px;
  padding: 18px 18px 16px;
  background: var(--paper);
  border: 3px solid #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-hard);
  scroll-margin-top: 16px;
}
.fame-block h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 24px;
  letter-spacing: 2px;
}
.fame-block h2 .ico { font-size: 26px; }
.fame-block h3 { margin: 4px 0 8px; color: #8a4b12; font-size: 15px; }
.fame-note { margin: 10px 2px 0; color: var(--muted); font-size: 12.5px; }
.fame-lead { margin: 0 0 10px; padding: 8px 12px; color: #6a48c9; background: #f1ebff; border-radius: 14px; font-weight: 800; }
.fame-lead:empty { display: none; }
.fame-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fame-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fame-empty { padding: 14px; color: var(--muted); text-align: center; font-size: 13px; list-style: none; }

/* 排行：前三名金银铜 */
.podium-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.podium-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  background: #fff;
  border-radius: 14px;
}
.podium-list .no {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #8a7a66;
  background: #f4eee3;
  border-radius: 50%;
  font-weight: 800;
}
.podium-list .who { display: grid; min-width: 0; }
.podium-list .who b, .podium-list .who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-list .who small { color: var(--muted); font-size: 11.5px; }
.podium-list .val { color: var(--orange-deep); font-weight: 800; white-space: nowrap; }
.podium-list li.top1 { background: linear-gradient(90deg, #fff6d6, #fff); }
.podium-list li.top1 .no { color: #fff; background: linear-gradient(180deg, #ffd65e, #f0a20c); }
.podium-list li.top2 .no { color: #fff; background: linear-gradient(180deg, #d9e3ee, #9fb0c2); }
.podium-list li.top3 .no { color: #fff; background: linear-gradient(180deg, #f6c39a, #d08a52); }

.mini-podium { display: grid; gap: 3px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }
.mini-podium li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 8px; background: #fff; border-radius: 10px; }
.mini-podium li span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mini-podium li small { color: var(--orange-deep); font-weight: 800; white-space: nowrap; }
.mini-podium li.top1::before { content: "🥇"; }
.mini-podium li.top2::before { content: "🥈"; }
.mini-podium li.top3::before { content: "🥉"; }

/* 擂台 / Boss：按日期的列表 */
.fame-days { display: grid; gap: 6px; max-height: 460px; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.fame-days li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 14px;
}
.fame-days .date { padding: 1px 9px; color: #fff; background: var(--orange); border-radius: 999px; font-size: 12px; font-weight: 800; }
.fame-days .champ { font-size: 14.5px; }
.fame-days small { color: var(--muted); font-size: 12px; }
.pets { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; }
.pet-chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 2px; background: #fff7ec; border-radius: 999px; }
.pet-chip img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }
.pet-chip small { max-width: 5.5em; overflow: hidden; color: #7b5a3a !important; text-overflow: ellipsis; white-space: nowrap; }
.boss-mini { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }

.week-card { padding: 10px 12px; background: #fff9ef; border: 2px solid #fff; border-radius: 16px; }
.week-card + .week-card { margin-top: 8px; }
.week-card > b { color: #8a4b12; font-size: 13.5px; }

/* 副本首杀 */
.dungeon + .dungeon { margin-top: 14px; }
.dungeon-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.dungeon-head b { font-family: var(--font-title); font-size: 19px; letter-spacing: 1px; }
.dungeon-prog { color: var(--muted); font-size: 12.5px; font-weight: 800; }
.boss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.boss-card {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 8px 10px;
  text-align: center;
  background: #f6f2f9;
  border: 3px solid #fff;
  border-radius: 16px;
}
.boss-card.killed { background: linear-gradient(180deg, #fff5e0, #fff); border-color: #ffd98a; }
.boss-img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; opacity: .5; }
.boss-card.killed .boss-img { opacity: 1; }
.boss-name { font-size: 13.5px; }
.boss-when { color: #b35c10; font-size: 11.5px; font-weight: 800; }
.boss-card:not(.killed) .boss-when { color: var(--muted); }
.boss-team { color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.4; }
.boss-kills { color: var(--muted); font-size: 11px; }

/* 练宠活动 */
.capture-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.capture-card { padding: 12px; background: #fff; border: 3px solid #f3ecdf; border-radius: 18px; }
.capture-card.current { border-color: #ffc5dc; background: linear-gradient(180deg, #fff4f9, #fff); }
.capture-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.capture-head div { display: grid; }
.capture-head small { color: var(--muted); font-size: 12px; font-weight: 700; }
.capture-img { width: 54px; height: 54px; object-fit: contain; image-rendering: pixelated; }
.capture-board { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; align-items: start; margin-top: 6px; }
.board-label { padding: 2px 0; color: #fff; background: var(--grape); border-radius: 999px; font-size: 11.5px; font-weight: 800; text-align: center; }

/* 乐园 */
.fame-firsts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.fame-firsts:empty { display: none; }
.first-chip {
  display: grid;
  padding: 8px 14px;
  text-align: center;
  background: linear-gradient(160deg, #fff7d6, #ffe7f2);
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow: 0 3px 0 rgba(224, 106, 18, .12);
}
.first-chip small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.first-chip b { color: #e06a12; font-size: 16px; }
.fun-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fun-champs .week-card + .week-card { margin-top: 0; }
.champ-weeks { display: grid; gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; }
.champ-weeks li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 8px; background: #fff; border-radius: 10px; }
.champ-weeks small { color: var(--muted); white-space: nowrap; }
.champ-weeks span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.champ-weeks li:first-child span::before { content: "👑 "; }

@media (hover: hover) and (pointer: fine) {
  .fame-nav a:hover { color: #fff; background: var(--orange); border-color: var(--orange); }
}
@media (max-width: 860px) {
  .fame-split, .fame-grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .fame-block { padding: 14px 12px; border-radius: 22px; }
  .boss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capture-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .fame-trophy { animation: none; } }
