:root {
  color-scheme: dark;
  --bg: #081017;
  --surface: #0e1a23;
  --surface-raised: #142430;
  --surface-soft: #101e28;
  --text: #e8eeec;
  --muted: #93a6b1;
  --quiet: #6c8390;
  --line: #253844;
  --line-soft: #1b2d38;
  --gold: #e2c694;
  --gold-dark: #ab8b55;
  --green: #82baa5;
  --danger: #d9736c;
  --shadow: 0 20px 64px #0006;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 14px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 78% 0, #152836 0, transparent 50%), var(--bg);
  line-height: 1.6;
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.42; }
button:not(:disabled), a { transition: color .18s, background .18s, border-color .18s, transform .18s; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { object-fit: contain; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { font-weight: 500; }
[hidden] { display: none !important; }

.app-shell { width: min(1420px, 100%); margin-inline: auto; padding: 0 36px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 300; background: var(--gold); color: #162028; padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* 顶栏 */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 44px; color: var(--gold); flex-shrink: 0; }
.brand-title { display: inline-block; font-size: 24px; font-weight: 600; letter-spacing: 4px; color: var(--text); }
.brand p { color: var(--muted); font-size: 11px; letter-spacing: 1.4px; margin-top: 2px; }

.header-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.header-balances { display: flex; align-items: center; gap: 18px; }
.header-balance { display: flex; align-items: baseline; gap: 6px; }
.header-balance span { color: var(--muted); font-size: 11px; }
.header-balance strong { color: var(--gold); font: 500 26px/1.15 Georgia, "Times New Roman", serif; font-variant-numeric: tabular-nums; }
.header-balance small { color: var(--quiet); font-size: 10px; }
.header-divider { height: 24px; width: 1px; background: var(--line); }
.header-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.auth-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; background: #132531; border: 1px solid var(--line); font-size: 11px; color: var(--gold); }

/* 合规横幅条 */
.ad-compliance-strip {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px; margin-bottom: 14px;
  border-radius: 8px; border: 1px dashed #293e4b; background: #0c1720b3; color: var(--quiet); font-size: 11px;
}
.ad-tag { padding: 2px 7px; border-radius: 4px; background: #182b37; color: var(--muted); font-size: 9px; letter-spacing: 1px; flex-shrink: 0; }

/* 主导航 */
.navigation-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.primary-navigation { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.primary-navigation::-webkit-scrollbar { display: none; }
.primary-navigation button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 2px 14px;
  color: var(--muted); font-size: 13.5px; letter-spacing: .5px; white-space: nowrap;
}
.primary-navigation button:hover { color: var(--text); }
.primary-navigation button.active { color: var(--gold); border-color: var(--gold); font-weight: 500; }
.save-status { color: var(--quiet); font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.save-status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }

/* 布局网格 */
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 24px; align-items: start; }
.game-layout.single-column { grid-template-columns: minmax(0, 1fr); }
.game-layout.single-column #loadout-panel { display: none; }
#main-content { min-width: 0; outline: none; }
.view { min-width: 0; }
.view > .panel + .panel { margin-top: 20px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #12212c, #0c1821 78%); }
.section-box { padding: 26px; }

/* 按钮组件 */
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  padding: 10px 17px; min-height: 40px; border: 1px solid transparent; border-radius: 7px;
  font-size: 12px; font-weight: 500; text-align: center;
}
.button.primary { background: var(--gold); color: #172027; border-color: var(--gold); box-shadow: 0 4px 14px #0003; }
.button.primary:not(:disabled):hover { background: #efd7ae; border-color: #efd7ae; transform: translateY(-1px); }
.button.secondary { color: #cbd7db; background: #182a3599; border-color: #3a4f5a; }
.button.secondary:not(:disabled):hover { background: #223845; border-color: #627782; }
.button.quiet { background: transparent; color: var(--muted); }
.button.quiet:not(:disabled):hover { color: var(--gold); background: #1a2c3670; }
.button.small { min-height: 32px; padding: 6px 12px; font-size: 11px; }
.button.full-width { width: 100%; }
.text-button { padding: 2px 0; border: 0; background: none; color: var(--gold); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.icon-button { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 5px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); }
.icon-button:hover { color: var(--text); background: #243640; }

/* 游客欢迎卡片 */
.guest-card { padding: 22px 26px; margin-bottom: 20px; border: 1px solid #594b34; border-radius: 14px; background: linear-gradient(135deg, #241f18, #0f1c26); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.guest-card h2 { font-size: 18px; color: var(--gold); }
.guest-card p { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 640px; }
.guest-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 每日探索 Hero */
.hero { position: relative; isolation: isolate; min-height: 336px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(160px, .75fr); align-items: center; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -70px; top: -10px; border: 1px solid #c9d5cf1a; border-radius: 50%; }
.hero-copy { padding: 32px 0 32px 30px; }
.eyebrow { color: var(--gold); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; }
.hero-copy h1 { font-size: clamp(25px, 2.5vw, 35px); margin-top: 10px; letter-spacing: 1px; }
.hero-description { color: #a7b8c0; font-size: 12.5px; line-height: 1.85; max-width: 420px; margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.hero-note { color: var(--quiet); font-size: 11px; margin-top: 12px; }
.hero-art { position: relative; display: grid; place-items: center; padding: 14px 18px 26px 0; min-width: 0; }
.hero-art img { width: 210px; height: 310px; transform: rotate(-8deg); filter: drop-shadow(10px 18px 18px #0007); }
.hero-art-label { position: absolute; bottom: 10px; left: 0; right: 12px; text-align: center; color: var(--muted); font-size: 9px; letter-spacing: 1.2px; }

/* 连签与抽卡区 */
#streak-panel { padding: 14px 18px; }
#draw-panel { padding: 24px; }
.section-heading, .view-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.section-heading h2 { font-size: 16px; letter-spacing: .8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 5px; color: var(--green); border: 1px solid #3c5d52; background: #23403670; font-size: 10.5px; }
.badge.warn { color: var(--gold); border-color: #705b38; background: #3b2f1c80; }

.streak-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.streak-day { min-height: 74px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #09151d80; min-width: 0; }
.streak-day > span { color: var(--muted); font-size: 10px; }
.streak-day strong { font: 500 21px/1.25 Georgia, serif; color: #b5c4cd; }
.streak-day small { font-size: 9px; color: var(--quiet); }
.streak-day.done { border-color: #3e5d52; background: #233c3345; }
.streak-day.done strong { color: var(--green); }
.streak-day.active { border-color: #b59a6d; background: linear-gradient(145deg, #ad8d522e, #ad8d520a); }
.streak-day.active strong, .streak-day.active > span { color: var(--gold); }

/* 365天恒动连签、14节点里程碑星轨与交互式补签月历中心 */
.streak-hub-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.streak-hub-title h2 { font-size: 17px; letter-spacing: 0.6px; color: var(--text); }
.streak-hub-title p { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.streak-status-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.streak-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); background: #0a1721; color: var(--text);
}
.streak-pill.compact { padding: 3px 9px; font-size: 11px; gap: 4px; white-space: nowrap; }
.streak-pill.yield { color: #c7d6de; }
.streak-pill.primary { border-color: #3e6b58; background: #173329; color: #90e4b8; }
.streak-pill.makeup { border-color: #82693d; background: #261f12; color: var(--gold); }
.streak-pill.makeup.empty { border-color: var(--line); background: #0b161f; color: var(--muted); }

/* 方案 A 极简双行驾驶舱与按需展开抽屉 */
.streak-compact-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.streak-compact-badges {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0;
}
.streak-compact-badges h2 {
  font-size: 14.5px; color: var(--text); margin: 0 2px 0 0; white-space: nowrap;
}
.streak-toggle-btn {
  border: 1px solid #355162; background: #10212d; color: #d6e4eb;
  font-size: 11px; padding: 4px 10px; min-height: 28px; white-space: nowrap; flex-shrink: 0;
}
.streak-toggle-btn:not(:disabled):hover {
  border-color: var(--gold); color: var(--gold); background: #152b39;
}
.streak-compact-bottom {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 10px;
}
.streak-progress-inline { min-width: 0; }
.streak-micro-7 {
  display: grid; grid-template-columns: repeat(7, 42px); gap: 5px; flex-shrink: 0;
}
.streak-micro-cell {
  min-width: 0; height: 36px; border-radius: 7px; border: 1px solid #1f3442;
  background: #091620; color: var(--muted); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 9.5px; line-height: 1.15;
  padding: 2px; font-family: inherit; text-align: center;
}
.streak-micro-cell.checked, .streak-micro-cell.makeup {
  border-color: #365f4e; background: #152d24; color: #8be0b0;
}
.streak-micro-cell.missed {
  border: 1px dashed #7a5c2e; background: #1e1810; color: #e0a958;
}
.streak-micro-cell.missed.repairable {
  cursor: pointer; border-style: solid; border-color: var(--gold);
  background: linear-gradient(145deg, #2e2413, #141d24); color: var(--gold); font-weight: 600;
}
.streak-micro-cell.today-pending {
  cursor: pointer; border-color: var(--gold);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), #0d1d28);
  color: var(--gold); font-weight: 700;
}
.streak-micro-cell.inactive { opacity: 0.45; }
.streak-rescue-banner.compact {
  margin-top: 10px; padding: 7px 12px;
}
.streak-rescue-banner.compact .streak-rescue-copy strong { font-size: 12px; }
.streak-details-drawer {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
}

.streak-rescue-banner {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid #d4af3799; background: linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(14, 27, 36, 0.95));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.streak-rescue-banner.info-only {
  border-color: #3c5462; background: #0c1923;
}
.streak-rescue-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.streak-rescue-copy strong { font-size: 13px; color: var(--gold); }
.streak-rescue-copy span { font-size: 11.5px; color: var(--muted); }

.annual-milestone-section {
  margin-top: 16px; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #08131b;
}
.annual-progress-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 11.5px; margin-bottom: 8px;
}
.annual-progress-track {
  width: 100%; height: 8px; border-radius: 999px; background: #132531; overflow: hidden;
  border: 1px solid #243b49; margin-bottom: 14px;
}
.annual-progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #38c985 0%, #d4af37 100%);
  transition: width 0.35s ease;
}

.milestone-cards-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
.milestone-node {
  min-width: 0; padding: 9px 7px; border-radius: 8px; border: 1px solid #1f3442;
  background: #0c1923; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 3px; position: relative; transition: border-color 0.15s;
}
.milestone-node .ms-day { font-size: 10px; color: var(--muted); font-weight: 600; }
.milestone-node .ms-reward { font-size: 12.5px; font-weight: 700; color: #dbe7ec; }
.milestone-node .ms-makeup { font-size: 9.5px; color: var(--gold); }
.milestone-node .ms-state {
  margin-top: 2px; font-size: 9.5px; padding: 1px 6px; border-radius: 999px;
  background: #132430; color: var(--quiet);
}
.milestone-node.done {
  border-color: #3c6e59; background: linear-gradient(160deg, #173229, #0b1820);
}
.milestone-node.done .ms-reward { color: #8be0b0; }
.milestone-node.done .ms-state { background: #204537; color: #8be0b0; }
.milestone-node.next {
  border-color: var(--gold); background: linear-gradient(160deg, #2b2314, #0d1a23);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}
.milestone-node.next .ms-day, .milestone-node.next .ms-reward { color: var(--gold); }
.milestone-node.next .ms-state { background: rgba(212, 175, 55, 0.2); color: var(--gold); font-weight: 600; }
.milestone-node.grand {
  border-color: #9e7f43; background: radial-gradient(circle at 50% 25%, #2d2413, #0c1821);
}
.milestone-node.grand .ms-reward { color: #ffd97d; font-size: 13px; }

.checkin-workspace-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 14px; margin-top: 14px;
}
.checkin-calendar-box, .checkin-formula-box {
  padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: #09151e;
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
}
.cal-box-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.cal-box-header h3, .checkin-formula-box h3 { font-size: 13.5px; color: var(--text); margin: 0; }
.cal-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.cal-grid-14 {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
}
.cal-day-cell {
  min-width: 0; min-height: 58px; padding: 6px 4px; border-radius: 7px;
  border: 1px solid #1c303d; background: #0c1a24; color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-align: center; font-family: inherit;
}
.cal-day-cell > span { font-size: 9.5px; color: var(--muted); }
.cal-day-cell > strong { font-size: 12px; color: #c7d6de; }
.cal-day-cell > small { font-size: 9px; color: var(--quiet); }
.cal-day-cell.checked, .cal-day-cell.makeup {
  border-color: #365f4e; background: #162e26;
}
.cal-day-cell.checked > strong, .cal-day-cell.makeup > strong { color: #8be0b0; }
.cal-day-cell.makeup > small { color: var(--gold); }
.cal-day-cell.missed {
  border: 1px dashed #7a5c2e; background: #1e1810;
}
.cal-day-cell.missed > strong { color: #e0a958; }
.cal-day-cell.missed.repairable {
  cursor: pointer; border-style: solid; border-color: var(--gold);
  background: linear-gradient(145deg, #2e2413, #141d24);
}
.cal-day-cell.missed.repairable:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cal-day-cell.today-pending {
  cursor: pointer; border-color: var(--gold);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(15, 29, 39, 0.9));
}
.cal-day-cell.today-pending > span, .cal-day-cell.today-pending > strong { color: var(--gold); }
.cal-day-cell.inactive { opacity: 0.45; }

.formula-rows { display: grid; gap: 8px; margin: 10px 0 12px; }
.formula-line {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--muted); padding-bottom: 6px; border-bottom: 1px dashed #1b2f3c;
}
.formula-line strong { color: var(--text); font-size: 13.5px; }
.formula-line.total {
  border-bottom: 0; padding-top: 4px; padding-bottom: 0; font-size: 13px; color: var(--text); font-weight: 600;
}
.formula-line.total strong { color: var(--gold); font-size: 18px; font-family: Georgia, serif; }

.reward-breakdown { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 15px; margin-top: 18px; }
.reward-item { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted); }
.reward-item strong { color: #d6e1e3; font: 500 22px/1.2 Georgia, serif; }
.reward-item.total strong { color: var(--gold); }
.reward-plus { color: var(--quiet); font-size: 12px; }
.receipt-note { color: var(--quiet); font-size: 11px; margin-top: 12px; line-height: 1.75; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filter-row button { color: var(--muted); border: 1px solid var(--line); background: #12212b; padding: 7px 14px; border-radius: 20px; font-size: 11.5px; }
.filter-row button.active { background: #e2c6941a; border-color: #947f5b; color: var(--gold); }

.draw-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.draw-actions .pity-box { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.draw-results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.draw-result {
  padding: 14px 8px 12px; text-align: center; background: #0b1720; border: 1px solid #2b3f4b;
  border-radius: 9px; display: flex; flex-direction: column; align-items: center; min-width: 0;
}
.draw-result.whole { border-color: #7c6b49; background: linear-gradient(145deg, #bc975d1a, #0b1720); }
.draw-result > img, .draw-result .part-svg-wrap { width: 100%; height: 96px; margin: 0 auto 8px; display: grid; place-items: center; object-fit: contain; }
.part-svg-wrap svg { width: 84px; height: 84px; }
.draw-result > strong { font-size: 11.5px; margin: 4px 0 2px; overflow-wrap: anywhere; }
.draw-result > small { font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.result-next { width: 100%; margin-top: auto; padding-top: 10px; display: grid; gap: 6px; font-size: 10px; color: var(--muted); }
.empty-results { grid-column: 1 / -1; border: 1px dashed #2b414d; border-radius: 9px; padding: 26px 18px; text-align: center; color: var(--quiet); font-size: 12px; }

/* 稀有度徽标 */
.rarity { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 1px 7px; border-radius: 4px; border: 1px solid currentColor; font: 600 10.5px/1.5 Arial, sans-serif; }
.rarity-N { color: #a6bbc5; }
.rarity-R { color: #7bb2d4; }
.rarity-SR { color: #c1a5e0; }
.rarity-SSR { color: #e8c780; }

/* 30款收藏图鉴网格 */
.view-heading { margin-bottom: 16px; }
.view-heading h1 { font-size: 24px; }
.collection-progress { color: var(--gold); font-size: 13px; }
.collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.collection-card { min-width: 0; overflow: hidden; border: 1px solid #283d48; border-radius: 11px; background: linear-gradient(150deg, #152833, #0c1820); display: flex; flex-direction: column; }
.collection-card.owned { border-color: #546a60; }
.card-visual { position: relative; display: grid; place-items: center; width: calc(100% - 20px); height: 236px; margin: 0 10px; padding: 28px 16px 10px; border: 0; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 50% 45%, #adc7d012, transparent 70%); }
.card-visual > img { height: 192px; filter: drop-shadow(6px 10px 10px #0006); }
.collection-card.locked .card-visual > img { opacity: 0.48; }
.card-visual > .rarity { position: absolute; left: 4px; top: 12px; }
.owned-mark { position: absolute; right: 4px; top: 14px; font-size: 10px; color: var(--green); }
.card-copy { padding: 14px 14px 12px; display: flex; flex-direction: column; flex: 1; }
.card-copy h3 { font-size: 14.5px; }
.card-copy > p { font-size: 10px; color: var(--quiet); margin-top: 3px; }
.card-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--muted); font-size: 10.5px; margin-top: 10px; }
.part-progress { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.part-progress i { height: 3.5px; flex: 1; border-radius: 2px; background: #2f424c; }
.part-progress i.filled { background: var(--gold); }
.part-progress span { flex-basis: 100%; font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.card-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 12px; }
.card-actions .button { flex: 1; padding-inline: 6px; }

/* 组装工坊与专属矢量部件蓝图 */
.fragment-balances { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.fragment-balance {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #12222c; font-size: 11.5px;
}
.fragment-balance-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fragment-balance strong { font: 500 22px/1.1 Georgia, serif; }
.fragment-coin-meta { font-size: 10px; color: var(--quiet); }
.frag-coin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: auto; }
.frag-upgrade-btn {
  padding: 5px 4px; font-size: 10px; font-weight: 600; border-radius: 6px;
  border: 1px solid rgba(109, 177, 191, 0.45); background: rgba(109, 177, 191, 0.11); color: #8ad8ea;
  cursor: pointer; transition: background .15s, opacity .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frag-upgrade-btn:hover:not(:disabled) { background: rgba(109, 177, 191, 0.24); }
.frag-upgrade-btn:disabled { opacity: 0.36; cursor: not-allowed; border-color: var(--line); background: transparent; color: var(--quiet); }
.frag-tier-cap-note {
  padding: 5px 6px; font-size: 10px; text-align: center; border-radius: 6px;
  border: 1px solid rgba(232, 199, 128, 0.28); background: rgba(232, 199, 128, 0.06); color: #e8c780;
}

.filter-row button.pool-completed { border-color: rgba(212, 175, 55, 0.48); color: #e8cf8a; }
.filter-row button.pool-completed.active { border-color: var(--gold); background: rgba(212, 175, 55, 0.2); color: #fff4d2; }

.core-completed-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.5); background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(18, 34, 44, 0.85));
  font-size: 11.5px; line-height: 1.5;
}
.core-completed-banner strong { color: var(--gold); }

.grand-slam-banner {
  margin-top: 14px; padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.38); background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(11, 23, 32, 0.9));
}
.grand-slam-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 8px; }
.grand-slam-track { height: 7px; border-radius: 999px; background: #20333e; overflow: hidden; }
.grand-slam-track > i { display: block; height: 100%; background: linear-gradient(90deg, #6da190, var(--gold)); transition: width .25s; }
.workshop-selector { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 14px; scrollbar-width: thin; }
.workshop-choice {
  flex: 0 0 128px; display: flex; flex-direction: column; align-items: center;
  padding: 9px 8px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: #0f1d27; color: var(--muted); font-size: 10.5px; text-align: center;
  transition: border-color .15s, background .15s;
}
.workshop-choice.tier-SSR { border-color: #e8c78040; }
.workshop-choice.tier-SR { border-color: #c1a5e038; }
.workshop-choice-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 4px; margin-bottom: 6px;
}
.workshop-choice-head .rarity { min-width: 24px; padding: 0 5px; font-size: 9.5px; line-height: 1.45; }
.workshop-choice-progress { font-size: 9.5px; color: var(--quiet); font-weight: 600; }
.workshop-choice-progress.ready { color: var(--gold); }
.workshop-choice-progress.owned { color: var(--green); }
.workshop-choice-title {
  color: inherit; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.workshop-choice img { height: 64px; width: 50px; margin-bottom: 6px; }
.workshop-choice.selected { border-color: var(--gold); background: #b8985e22; color: var(--text); }
.recipe-panel { padding: 24px; }
.recipe-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.recipe-parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.recipe-part { background: #0a161f; border: 1px solid var(--line); border-radius: 9px; padding: 14px 8px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.recipe-part.available { border-color: #496e5b; background: #1f362c50; }
.recipe-part .part-svg-wrap { height: 84px; margin-bottom: 8px; }
.recipe-part h4 { font-size: 12px; }
.recipe-part small { color: var(--quiet); font-size: 10px; margin: 4px 0 10px; }
.recipe-part .button { width: 100%; margin-top: auto; }
.recipe-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* 右侧收益装载栏 */
.loadout-panel { padding: 22px 18px; position: sticky; top: 20px; }
.score-display { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.score-display strong { font: 500 38px/1.1 Georgia, serif; }
.score-display .bonus-num { font-size: 28px; color: var(--gold); }
.score-display span { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.score-meter { height: 5px; border-radius: 4px; background: #263a45; overflow: hidden; margin-top: 12px; }
.score-meter > i { display: block; height: 100%; background: linear-gradient(90deg, #6da190, var(--gold)); transition: width .25s; }
.score-labels { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--quiet); margin-top: 6px; }
.slots { display: grid; gap: 9px; margin-top: 18px; }
.slot { display: flex; align-items: center; gap: 10px; min-height: 82px; padding: 10px; border: 1px solid #334853; border-radius: 8px; background: #0b171f; }
.slot.empty { border-style: dashed; border-color: #2b3f4a; background: #0b171f66; }
.slot > img { width: 40px; height: 64px; flex-shrink: 0; }
.slot-number { display: grid; place-items: center; width: 40px; height: 52px; font: 400 20px Georgia, serif; color: #4e6774; border: 1px solid #304550; border-radius: 7px; flex-shrink: 0; }
.slot-info { flex: 1; min-width: 0; }
.slot-info strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.slot-info small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.settlement-card { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* 展示柜、成就徽章墙、排行榜、开奖公证与管理后台 */
.showcase-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.badges-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.badge-card {
  padding: 15px 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: #0a151e;
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; opacity: 0.62;
}
.badge-card.unlocked {
  opacity: 1; border-color: #8c7448;
  background: radial-gradient(ellipse at 50% 0, #e2c6941f, transparent 68%), #0f1d27;
  box-shadow: 0 6px 20px #0004;
}
.badge-emblem { width: 52px; height: 52px; margin-bottom: 9px; color: #5e7480; }
.badge-card.unlocked .badge-emblem { color: var(--gold); filter: drop-shadow(0 3px 8px #e2c69435); }
.badge-card h4 { font-size: 12.5px; color: var(--text); }
.badge-card p { font-size: 10px; color: var(--muted); margin: 5px 0 10px; line-height: 1.5; }
.badge-meter { width: 100%; height: 4px; border-radius: 3px; background: #1e313c; overflow: hidden; margin-top: auto; }
.badge-meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }
.badge-status { font-size: 9.5px; color: var(--quiet); margin-top: 5px; }
.badge-card.unlocked .badge-status { color: var(--gold); font-weight: 600; }
.showcase-slot { border: 1px dashed #354c58; border-radius: 10px; padding: 12px 8px; text-align: center; background: #0a161f; display: flex; flex-direction: column; align-items: center; min-height: 168px; }
.showcase-slot.filled { border-style: solid; border-color: #6b5d43; background: linear-gradient(160deg, #1b2831, #0b161f); }
.showcase-slot img { height: 96px; margin-bottom: 8px; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12px; }
.data-table th, .data-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table th { color: var(--gold); font-weight: 500; font-size: 11px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; word-break: break-all; color: #b7ccd6; }
.prize-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(160px, .6fr); gap: 22px; align-items: center; padding: 26px; }
.prize-hero img { height: 240px; margin: auto; }
.disclaimer-box { margin-top: 16px; padding: 12px 15px; border-radius: 8px; border-left: 3px solid var(--gold); background: #14222c; font-size: 11.5px; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi-card { padding: 16px; border-radius: 10px; border: 1px solid var(--line); background: #0e1c26; }
.kpi-card span { font-size: 11px; color: var(--muted); }
.kpi-card strong { display: block; margin-top: 6px; font: 500 26px Georgia, serif; color: var(--gold); }
.proof-steps { margin-top: 12px; padding: 14px; border-radius: 8px; background: #081219; border: 1px solid #2b4350; display: grid; gap: 8px; }

/* 表单与弹窗 */
.form-grid { display: grid; gap: 14px; margin-top: 14px; }
.field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.field input, .field select {
  padding: 10px 12px; border-radius: 7px; border: 1px solid #354b57; background: #09141c; color: var(--text); width: 100%;
}
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); cursor: pointer; }
.checkbox-row input { margin-top: 3px; }

dialog {
  color: var(--text); width: min(780px, calc(100% - 28px)); max-height: min(90dvh, 920px);
  border: 1px solid #4e616b; border-radius: 15px; background: linear-gradient(135deg, #172a35, #0b1720);
  padding: 30px; overflow: auto; box-shadow: 0 30px 120px #000b;
}
dialog::backdrop { background: #03080dc4; backdrop-filter: blur(6px); }
.dialog-close { position: absolute; top: 12px; right: 12px; background: #22343e; }
.dialog-heading { margin: 0 28px 20px 0; }
.dialog-heading h2 { font-size: 22px; }
.dialog-heading p { color: var(--muted); font-size: 12px; margin-top: 7px; }
.starter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.starter-card { background: #0c1922; border: 1px solid #344a56; border-radius: 10px; padding: 15px 12px; text-align: center; display: flex; flex-direction: column; }
.starter-card img { height: 156px; margin: 0 auto 10px; }
.starter-card h3 { font-size: 14px; }
.starter-card p { font-size: 10.5px; color: var(--muted); margin: 5px 0 12px; }
.starter-card .button { margin-top: auto; width: 100%; }
.equip-options { display: grid; gap: 9px; }
.equip-option { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: #0d1b24; }
.equip-option > img { width: 42px; height: 64px; }
.equip-option > span { flex: 1; min-width: 0; }
.detail-card { position: relative; text-align: center; display: flex; justify-content: center; align-items: center; }
.detail-card > img,
.detail-card > svg.live-watch-svg {
  max-height: 68dvh;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: auto;
  display: block;
}
img.live-svg-underlay {
  opacity: 0 !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  inset: 0 !important;
  margin: auto !important;
  pointer-events: none !important;
}
.hero-art > svg.live-watch-svg,
.pool-hero-art > svg.live-watch-svg {
  width: 210px;
  height: 310px;
  transform: rotate(-8deg);
  filter: drop-shadow(10px 18px 18px #0007);
}
@media (max-width: 680px) {
  .hero-art > svg.live-watch-svg,
  .pool-hero-art > svg.live-watch-svg {
    width: 104px;
    height: 210px;
    transform: none;
  }
}
.slot { position: relative; }
.slot > svg.live-watch-svg,
.slot-card > svg.live-watch-svg {
  width: 40px;
  height: 64px;
  flex-shrink: 0;
}
.draw-result { position: relative; }
.draw-result > svg.live-watch-svg {
  width: auto;
  max-width: 100%;
  height: 96px;
  margin: 0 auto 8px;
  display: block;
}
.flip-front .draw-result > svg.live-watch-svg {
  width: auto;
  max-width: 100%;
  height: 68px;
  margin: 0 auto 5px;
  display: block;
}
.crown-jewel-art { position: relative; }
.crown-jewel-art > svg.live-watch-svg {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
}
.showcase-slot > svg.live-watch-svg {
  width: auto;
  max-width: 100%;
  height: 96px;
  margin-bottom: 8px;
  display: block;
}
.prize-showcase { position: relative; display: grid; place-items: center; }
.prize-hero svg.live-watch-svg,
.prize-showcase > svg.live-watch-svg {
  width: auto;
  max-width: 100%;
  height: 240px;
  margin: auto;
  display: block;
}
.prize-tier-card { position: relative; }
.prize-tier-card > svg.live-watch-svg {
  width: 64px;
  height: 98px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px #0008);
}
.detail-live-svg-wrap {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.detail-live-svg-wrap > svg {
  max-height: 68dvh;
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
.live-movement-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; }

.rules-copy { font-size: 13px; line-height: 1.85; color: #b8c7cd; }
.rules-copy h2, .rules-copy h3 { color: var(--gold); margin: 20px 0 8px; }
.rules-copy ul { padding-left: 20px; margin: 8px 0; }

.site-footer { margin-top: 36px; padding: 22px 0 32px; border-top: 1px solid var(--line); }
.footer-caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--quiet); font-size: 11px; }
.experience-controls { margin-top: 18px; font-size: 11.5px; color: var(--muted); }
.experience-controls summary { cursor: pointer; color: var(--gold); width: fit-content; }
.experience-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; }
.experience-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.toast {
  position: fixed; z-index: 400; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
  max-width: calc(100vw - 28px); padding: 12px 20px; border: 1px solid #6e877a; border-radius: 8px;
  background: #172e27f5; color: #e5f1ec; font-size: 12px; box-shadow: var(--shadow);
  pointer-events: none; opacity: 0; transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* 四阶稀有度 3D 翻牌开盒仪式（统一每行 5 张卡，单抽/五连/十连单卡尺寸完全一致） */
dialog:has(.reveal-grid) { padding: 20px 22px 18px; width: min(760px, calc(100% - 28px)); }
dialog:has(.reveal-grid) .dialog-heading { margin: 0 28px 10px 0; }
dialog:has(.reveal-grid) .dialog-heading h2 { font-size: 18px; }
dialog:has(.reveal-grid) .dialog-heading p { font-size: 11.5px; margin-top: 4px; }
dialog:has(.reveal-grid) .confirm-actions { margin-top: 14px; }
.reveal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.reveal-grid,
.reveal-grid.reveal-five,
.reveal-grid.reveal-ten { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.reveal-grid.reveal-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: calc((100% - 32px) / 5);
  margin: 0 auto;
}
.flip-card { perspective: 1050px; min-height: 204px; position: relative; }
.flip-card:not(.is-flipped) { cursor: pointer; }
.flip-inner {
  position: relative; width: 100%; height: 100%; min-height: 204px;
  transform-style: preserve-3d;
  transition: transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 10px; width: 100%; height: 100%;
}
.flip-back {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 38%, #1a2f3d, #09131b 78%);
  border: 1px solid #3c5462; padding: 10px 8px; text-align: center;
}
.flip-back svg { width: 52px; height: 52px; color: var(--gold); opacity: 0.88; animation: balanceOscillate 2.4s ease-in-out infinite; }
.flip-back strong { font-size: 10.5px; letter-spacing: 0.8px; line-height: 1.25; }
.flip-back small { font-size: 9.5px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.flip-front { transform: rotateY(180deg); position: relative; }
.flip-front .draw-result { height: 100%; margin: 0; padding: 9px 6px 8px; }
.flip-front .draw-result > img,
.flip-front .draw-result .part-svg-wrap { height: 68px; margin: 0 auto 5px; object-fit: contain; }
.flip-front .part-svg-wrap svg { width: 60px; height: 60px; }
.flip-front .draw-result > strong {
  font-size: 10.5px; line-height: 1.28; margin: 3px 0 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.flip-front .draw-result > small { font-size: 9px; margin-top: 2px; line-height: 1.25; }
.flip-front .result-next { padding-top: 6px; gap: 4px; }
.flip-front .result-next .button { padding: 4px 8px; font-size: 10px; min-height: 26px; width: 100%; }
.flip-card:not(.is-flipped) .flip-front { pointer-events: none; visibility: hidden; }
.flip-card.is-flipped .flip-back { pointer-events: none; visibility: hidden; }

.flip-card.tier-N .flip-back { border-color: #556d7b; box-shadow: 0 0 16px #9fb4c21f; }
.flip-card.tier-R .flip-back { border-color: #4b8f78; box-shadow: 0 0 20px #82baa533; }
.flip-card.tier-SR .flip-back { border-color: #c79f59; box-shadow: 0 0 24px #e2c69447; }
.flip-card.tier-SSR .flip-back {
  border-color: #8fe3ff;
  background: radial-gradient(circle at 50% 35%, #204257, #091520 78%);
  box-shadow: 0 0 30px #8fe3ff66, inset 0 0 18px #e2c69433;
  animation: ssrPulse 1.6s ease-in-out infinite alternate;
}
.flip-card.tier-R .draw-result { border-color: #4b8f78; }
.flip-card.tier-SR .draw-result { border-color: #c79f59; box-shadow: 0 8px 24px #e2c69424; }
.flip-card.tier-SSR .draw-result { border-color: #8fe3ff; box-shadow: 0 10px 30px #8fe3ff38; }

/* 工坊五件专属部件向心聚拢组装仪式 */
.assembly-stage {
  position: relative; height: 276px; display: grid; place-items: center; overflow: hidden;
  border-radius: 12px; border: 1px solid #354c58;
  background: radial-gradient(circle at 50% 50%, #1c3240 0%, #09131b 72%);
}
.assembly-ring {
  position: absolute; width: 206px; height: 206px; border-radius: 50%;
  border: 1px dashed #e2c69455; animation: ringSpin 10s linear infinite; pointer-events: none;
}
.orbit-part {
  position: absolute; width: 62px; height: 62px; padding: 6px; border-radius: 50%;
  background: #0e1e29; border: 1px solid var(--gold); pointer-events: none;
  animation: partConverge 0.78s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.assembled-watch-wrap {
  position: relative; z-index: 2; display: grid; place-items: center;
  animation: watchEmerge 0.85s cubic-bezier(0.18, 0.89, 0.32, 1.15) forwards;
}
.assembled-watch-wrap img { height: 220px; filter: drop-shadow(0 14px 26px #000a) drop-shadow(0 0 22px #e2c69445); }

.poster-preview-box {
  margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid #594b34; background: #071017;
}
.poster-preview-box svg,
.poster-preview-box img { width: 100%; height: auto; display: block; }

/* 开奖四步大白话图解卡片与底层密码学折叠抽屉 */
.raffle-flow-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px;
}
.flow-step {
  padding: 15px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0a161f;
  display: flex; flex-direction: column; gap: 6px; position: relative;
}
.flow-step.active {
  border-color: var(--gold);
  background: linear-gradient(155deg, #242118, #0d1a24 72%);
  box-shadow: 0 6px 20px #0004;
}
.flow-step-num {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--gold); letter-spacing: 0.5px; font-weight: 600;
}
.flow-step h4 { font-size: 13.5px; color: var(--text); }
.flow-step p { font-size: 11.5px; color: var(--muted); line-height: 1.55; }

.admin-steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px;
}
.admin-step-card {
  padding: 16px; border-radius: 10px; border: 1px solid var(--line); background: #0b1720;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.admin-step-card.highlight { border-color: var(--gold); background: linear-gradient(155deg, #221f17, #0c1821); }

.tech-drawer {
  margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; font-size: 11.5px;
}
.tech-drawer > summary, .tech-panel > summary {
  cursor: pointer; color: var(--gold); font-weight: 500; user-select: none; list-style: revert;
}
.tech-panel { padding: 18px 24px; margin-top: 20px; }
.tech-panel[open] > summary { margin-bottom: 14px; }

/* 多档位奖品橱窗与后台多表清单编辑器 */
.prize-tiers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px;
}
.prize-tier-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 11px;
  border: 1px solid #483f2f; background: linear-gradient(145deg, #1a242c, #0b161f);
}
.prize-tier-card img { width: 64px; height: 98px; flex-shrink: 0; filter: drop-shadow(0 6px 12px #0008); }
.prize-tier-info { flex: 1; min-width: 0; }
.prize-tier-info h4 { font-size: 13.5px; color: var(--text); margin-top: 5px; }
.prize-tier-info p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.prize-editor-list { display: grid; gap: 12px; margin-top: 14px; }
.prize-tier-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: #0a151e;
}
.prize-tier-row > img { width: 52px; height: 80px; margin: auto; }
.prize-tier-fields {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end;
}
.winner-slot-list { display: grid; gap: 5px; }
.winner-slot-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px;
  padding: 4px 8px; border-radius: 6px; background: #0c1922; border: 1px solid var(--line-soft);
}

/* 中奖玩家实物领奖与物流追踪面板 */
.winnings-claim-list { display: grid; gap: 14px; margin-top: 14px; }
.winning-claim-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px; border-radius: 10px; border: 1px solid var(--gold);
  background: linear-gradient(135deg, #172327 0%, #0b161f 100%);
}
.winning-claim-card > img { width: 58px; height: 92px; margin: auto; }
.tracking-highlight {
  margin-top: 8px; padding: 8px 12px; border-radius: 7px;
  border: 1px solid #d4af3766; background: #1e2a24; font-size: 12px; color: var(--ink);
}
.otp-input-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center;
}
.pii-review-box {
  padding: 14px; border-radius: 8px; border: 1px solid var(--line); background: #08131b;
  display: grid; gap: 6px; font-size: 12.5px; margin-bottom: 14px; word-break: break-word;
}
.security-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.security-pill {
  padding: 6px 11px; border-radius: 999px; font-size: 11.5px;
  border: 1px solid var(--line); background: #0a1620; color: var(--ink);
}
.security-pill.ok { border-color: #2e8b5788; color: #8be0b0; }
.security-pill.dev { border-color: #d4af3766; color: var(--gold); }

/* 全站中奖未填地址强提醒横幅、开奖倒计时与按需客服联系胶囊 */
.global-win-alert {
  margin-top: 14px; padding: 14px 18px; border-radius: 10px;
  border: 1.5px solid var(--gold);
  background: linear-gradient(90deg, #272213 0%, #14222b 100%);
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: 0 6px 24px #00000055;
}
.global-win-alert[hidden], .contact-bar[hidden], .ad-compliance-strip[hidden] { display: none !important; }
.nav-win-dot {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 5px; padding: 1px 6px; border-radius: 999px;
  background: var(--gold); color: #081017; font-size: 10.5px; font-weight: 700;
}
.draw-countdown-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid #e2c69477; background: #1d2622; color: var(--gold);
}
.contact-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.contact-label { font-size: 11.5px; color: var(--quiet); margin-right: 4px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px; text-decoration: none;
  border: 1px solid var(--line); background: #0b1822; color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.contact-link:hover { border-color: var(--gold); color: var(--gold); }

@keyframes balanceOscillate {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}
@keyframes ssrPulse {
  from { box-shadow: 0 0 18px #8fe3ff45, inset 0 0 12px #e2c69422; }
  to { box-shadow: 0 0 34px #8fe3ff8c, inset 0 0 24px #e2c69455; }
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}
@keyframes partConverge {
  0% {
    opacity: 0.96;
    transform: rotate(var(--angle)) translateY(-102px) rotate(calc(-1 * var(--angle))) scale(1);
  }
  72% {
    opacity: 0.95;
    transform: rotate(calc(var(--angle) + 90deg)) translateY(-12px) scale(0.55);
  }
  100% {
    opacity: 0;
    transform: rotate(calc(var(--angle) + 140deg)) translateY(0) scale(0.15);
  }
}
@keyframes watchEmerge {
  0%, 45% { opacity: 0; transform: scale(0.52); }
  80% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .flip-inner, .orbit-part, .assembled-watch-wrap, .flip-back svg, .assembly-ring {
    animation: none !important; transition: none !important;
  }
  .orbit-part { display: none; }
}

@media (max-width: 1080px) {
  .app-shell { padding-inline: 22px; }
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .loadout-panel { position: static; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .badges-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .raffle-flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .milestone-cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .checkin-workspace-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .app-shell { padding-inline: 14px; }
  .navigation-row { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 16px; }
  .primary-navigation { gap: 15px; width: 100%; }
  .primary-navigation button { padding: 8px 2px 10px; font-size: 13px; }
  .save-status { align-self: flex-end; font-size: 10px; padding-bottom: 4px; }
  #streak-panel { padding: 12px 14px; }
  #draw-panel { padding: 16px 14px; }
  .streak-compact-bottom { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .streak-micro-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .milestone-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-grid-14 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .raffle-flow-grid { grid-template-columns: minmax(0, 1fr); }
  .site-header { gap: 12px; padding-top: 16px; }
  .brand-title { font-size: 20px; letter-spacing: 2px; }
  .header-right { width: 100%; justify-content: space-between; }
  .hero { grid-template-columns: minmax(0, 1fr) 110px; min-height: 280px; }
  .hero-copy { padding: 22px 0 22px 18px; }
  .hero-art img { width: 104px; height: 210px; transform: none; }
  .streak-days { gap: 4px; }
  .streak-day { min-height: 62px; }
  .streak-day strong { font-size: 17px; }
  .reward-breakdown { gap: 4px; }
  .reward-item strong { font-size: 18px; }
  .draw-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reveal-grid,
  .reveal-grid.reveal-five,
  .reveal-grid.reveal-ten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reveal-grid.reveal-single { width: calc((100% - 8px) / 2); margin: 0 auto; }
  .flip-card, .flip-inner { min-height: 188px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fragment-balances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slots { grid-template-columns: minmax(0, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prize-hero { grid-template-columns: minmax(0, 1fr); }
  .winning-claim-card { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .winning-claim-card > img { margin: 0; }
  .otp-input-row { grid-template-columns: minmax(0, 1fr); }
  dialog { padding: 22px 16px; width: calc(100% - 20px); }
}

/* 1,472 款全量图鉴检索工具栏、二级分池选择与分页器 */
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
  margin-bottom: 12px;
}
.catalog-toolbar input,
.catalog-toolbar select,
.pool-sub-select {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0a1620;
  color: var(--ink);
  font-size: 13px;
}
.catalog-toolbar input:focus,
.catalog-toolbar select:focus,
.pool-sub-select:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}
.pool-sub-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b1822;
  border: 1px solid var(--line);
}
.pool-sub-bar .pool-sub-select {
  flex: 1 1 220px;
  max-width: 100%;
}
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 680px) {
  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================================
   表坊与策展闭环系统（表匠委托 · 每日制表鉴真 · 每周主题策展）
   ========================================================================= */
.nav-pending-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #162129;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.daily-atelier-strip {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.daily-atelier-strip-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
  flex: 1;
}
.daily-atelier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #2b4554;
  background: #0b1822;
  font-size: 11.5px;
  color: var(--text);
}
.daily-atelier-pill.ready {
  border-color: #3f755d;
  background: #143025;
  color: #8ee6b9;
}
.daily-atelier-pill.gold {
  border-color: #7c6438;
  background: #231c10;
  color: var(--gold);
}

.atelier-stack {
  display: grid;
  gap: 20px;
}
.atelier-section-box {
  padding: 22px 24px;
}
.atelier-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.atelier-header-meta h2 {
  font-size: 17px;
  color: var(--text);
}
.atelier-header-meta p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.mission-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mission-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #09151e;
  display: grid;
  gap: 10px;
  align-content: start;
}
.mission-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  padding-bottom: 6px;
  border-bottom: 1px solid #1b2f3c;
}
.mission-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #1e3341;
  background: #0d1c27;
}
.mission-card.chest {
  border-color: #6f5932;
  background: linear-gradient(135deg, #1d1810, #0d1c27);
}
.mission-card.claimed {
  opacity: 0.72;
}
.mission-copy {
  min-width: 0;
  flex: 1;
}
.mission-copy strong {
  display: block;
  font-size: 12.5px;
  color: var(--text);
}
.mission-copy p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.mission-progress-bar {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mission-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: #162b38;
  overflow: hidden;
}
.mission-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #35ba7a, #d4af37);
}
.mission-progress-text {
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.mission-action {
  flex-shrink: 0;
  text-align: right;
  display: grid;
  gap: 4px;
  justify-items: end;
}
.mission-reward-tag {
  font-size: 10.5px;
  color: var(--gold);
  white-space: nowrap;
}

.atelier-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: start;
}

/* 每日制表鉴真区 */
.quiz-stage {
  display: grid;
  gap: 14px;
}
.quiz-visual-box {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #233a49;
  background: radial-gradient(circle at center, #142736, #09141d);
}
.quiz-visual-box img {
  width: 148px;
  height: 196px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px #0008);
}
.quiz-prompt-box {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #223847;
  background: #0a1721;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
}
.quiz-options {
  display: grid;
  gap: 8px;
}
.quiz-option-btn {
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid #27404f;
  background: #0c1b26;
  color: var(--text);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-option-btn:not(:disabled):hover {
  border-color: var(--gold);
  background: #132836;
}
.quiz-option-btn.correct {
  border-color: #3dc783;
  background: #143326;
  color: #a9f4cd;
}
.quiz-option-btn.wrong {
  border-color: #c25555;
  background: #33171b;
  color: #f4b2b2;
}
.quiz-result-box {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #3c5d52;
  background: #10251e;
  font-size: 11.5px;
  line-height: 1.65;
}
.quiz-result-box.wrong-note {
  border-color: #6a4d34;
  background: #211912;
}

/* 每周主题策展区 */
.expo-theme-banner {
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid #6d5832;
  background: linear-gradient(135deg, rgba(173, 141, 82, 0.14), rgba(10, 22, 31, 0.96));
  margin-bottom: 14px;
}
.expo-theme-banner h3 {
  font-size: 15px;
  color: var(--gold);
}
.expo-theme-banner p {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}
.expo-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.expo-stars {
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 2px;
}
.expo-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.expo-slot {
  min-width: 0;
  border: 1px dashed #2e4858;
  border-radius: 10px;
  padding: 10px;
  background: #0a1620;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}
.expo-slot.filled {
  border-style: solid;
  border-color: #3c5d52;
  background: #0d1d28;
}
.expo-slot.matched {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}
.expo-slot img {
  width: 68px;
  height: 100px;
  object-fit: contain;
}
.expo-slot-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.expo-slot-meta {
  font-size: 10px;
  color: var(--muted);
}
.synergy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.synergy-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid #263d4b;
  background: #09151e;
  color: var(--muted);
}
.synergy-pill.active {
  border-color: #3f755d;
  background: #143025;
  color: #96ebb9;
}
.expo-capacity-hint {
  font-size: 11.5px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed #6b562e;
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.expo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1080px) {
  .mission-columns,
  .atelier-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .atelier-section-box {
    padding: 16px 14px;
  }
  .expo-slots {
    grid-template-columns: minmax(0, 1fr);
  }
  .daily-atelier-strip {
    padding: 12px 14px;
  }
}

/* 第一阶段 A+D 扩展玩法：策略探索控制条、纯 CSS 展示柜高定皮肤与高定商城 */
.pool-strategy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(226, 198, 148, 0.24);
  background: linear-gradient(135deg, #0d1d28, #081219);
}
.pool-strategy-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pool-strategy-bar select {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #0a1620;
  color: var(--ink);
  font-size: 12px;
  max-width: 240px;
}
.title-crest-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: #f4d89b;
  border: 1px solid rgba(226, 198, 148, 0.45);
  background: rgba(212, 175, 55, 0.14);
}
.showcase-grid.skin-showcase_emerald .showcase-slot.filled {
  border-color: #2c7a5f;
  background: radial-gradient(circle at top, #174938, #081813 82%);
  box-shadow: 0 6px 18px rgba(24, 102, 74, 0.26);
}
.showcase-grid.skin-showcase_geneva .showcase-slot.filled {
  border-color: #b77f62;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, #1d1c22, #090b0f);
  box-shadow: 0 6px 20px rgba(183, 127, 98, 0.2);
}
.showcase-grid.skin-showcase_platinum .showcase-slot.filled {
  border-color: #77c6de;
  background: radial-gradient(circle at top, #204459, #091824 85%);
  box-shadow: 0 6px 22px rgba(119, 198, 222, 0.28);
}
.cosmetic-shop-section {
  margin-top: 14px;
}
.cosmetic-shop-section h3 {
  font-size: 13.5px;
  color: var(--gold);
  margin-bottom: 8px;
}
.cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.cosmetic-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #0b1822;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cosmetic-card.equipped {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}
.cosmetic-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.group-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

/* ============================
 * 个人主页（藏家荣誉护照 · 镇馆之宝 · 藏品 DNA · 奖杯柜 · 编年史）
 * ============================ */
#profile-panel > .panel + .panel,
#leaderboard-panel > .panel + .panel,
#leaderboard-panel > .lb-podium-grid,
#leaderboard-panel > .lb-podium-grid + .panel {
  margin-top: 20px;
}

.profile-passport-hero {
  background: radial-gradient(circle at 86% 10%, rgba(226, 198, 148, 0.16), transparent 46%),
    linear-gradient(145deg, #152836, #0b161f 75%);
  border-color: rgba(226, 198, 148, 0.34);
}
.profile-guest-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.profile-passport-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.profile-identity-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.profile-id-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.profile-avatar-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--gold);
  background: radial-gradient(circle, #183040, #09131b);
  border: 1px solid rgba(226, 198, 148, 0.4);
  display: grid;
  place-items: center;
  padding: 6px;
}
.profile-id-meta { min-width: 0; flex: 1; }
.profile-id-kicker {
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.profile-display-name {
  font-size: 24px;
  font-weight: 600;
  margin: 4px 0 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  word-break: break-word;
}
.profile-badges-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge.win-seal {
  color: #162028;
  background: linear-gradient(135deg, #f7dfaa, #cfa45d);
  border-color: #f7dfaa;
  font-weight: 700;
}
.profile-settings-bar {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(9, 19, 27, 0.72);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-bio-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.profile-bio-field input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #0a151e;
  color: var(--text);
  font-size: 12.5px;
}
.profile-settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.profile-public-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.profile-valuation-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.profile-arv-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(226, 198, 148, 0.32);
  background: linear-gradient(135deg, rgba(226, 198, 148, 0.1), rgba(10, 21, 30, 0.85));
}
.profile-arv-label {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.profile-arv-value {
  margin: 4px 0 2px;
  font: 600 36px/1.15 Georgia, "Times New Roman", serif;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.profile-arv-sub { font-size: 12px; }
.profile-kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.profile-kpi-mini {
  padding: 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(11, 22, 31, 0.78);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-kpi-mini span { font-size: 10.5px; color: var(--muted); }
.profile-kpi-mini strong { font: 600 17px/1.2 Georgia, serif; color: var(--text); }
.profile-kpi-mini small { font-size: 11px; color: var(--quiet); font-family: inherit; }
.profile-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 镇馆之宝 Spotlight */
.crown-jewel-spotlight {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(226, 198, 148, 0.34);
  background: radial-gradient(circle at 18% 50%, rgba(226, 198, 148, 0.14), transparent 55%), #0a1620;
}
.crown-jewel-spotlight.compact {
  padding: 12px 14px;
  gap: 14px;
  margin: 12px 0 0;
}
.crown-jewel-art {
  width: 92px;
  height: 136px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.crown-jewel-spotlight.compact .crown-jewel-art {
  width: 64px;
  height: 94px;
}
.crown-jewel-art img { max-height: 100%; width: auto; }
.crown-jewel-info { min-width: 0; flex: 1; }
.crown-jewel-info h3 { margin: 8px 0 4px; font-size: 19px; font-weight: 600; }
.crown-jewel-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}
.crown-jewel-metrics > div { display: flex; flex-direction: column; gap: 2px; }
.crown-jewel-metrics span { font-size: 10.5px; color: var(--muted); }
.crown-jewel-metrics strong { font-size: 13.5px; color: var(--gold); }
.showcase-slot { position: relative; }
.slot-crown-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(226, 198, 148, 0.18);
  border: 1px solid rgba(226, 198, 148, 0.5);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 600;
}

/* 藏品基因与 20 大官方系列金色点亮矩阵 */
.profile-dna-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 22px;
}
.dna-left-col, .dna-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.dna-subblock {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 21, 30, 0.72);
}
.dna-block-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.dna-stacked-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #0a151e;
  border: 1px solid var(--line);
  gap: 2px;
}
.dna-stacked-bar .seg-ssr { background: linear-gradient(90deg, #68c5e8, #a7ecff); }
.dna-stacked-bar .seg-sr { background: linear-gradient(90deg, #b89456, #efd5a3); }
.dna-stacked-bar .seg-r { background: linear-gradient(90deg, #52947c, #8ad1b7); }
.dna-stacked-bar .seg-n { background: linear-gradient(90deg, #5a7280, #8fa5b2); }
.dna-rarity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted);
}
.dna-rarity-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.dot-ssr { background: #8fe3ff; }
.dot-sr { background: #e2c694; }
.dot-r { background: #82baa5; }
.dot-n { background: #8fa5b2; }
.dna-metal-list { display: flex; flex-direction: column; gap: 8px; }
.dna-metal-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  font-size: 11.5px;
}
.dna-metal-track {
  height: 7px;
  border-radius: 999px;
  background: #0c1923;
  overflow: hidden;
}
.dna-metal-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
}
.dna-metal-row strong { text-align: right; font-weight: 500; color: var(--muted); }
.taste-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.taste-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--gold);
  border: 1px solid rgba(226, 198, 148, 0.34);
  background: rgba(226, 198, 148, 0.08);
}
.dna-atelier-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.dna-atelier-mini > div { display: flex; flex-direction: column; gap: 2px; }
.dna-atelier-mini span { font-size: 10.5px; color: var(--muted); }
.dna-atelier-mini strong { font-size: 13.5px; color: var(--text); }
.dna-atelier-mini small { font-size: 10.5px; color: var(--quiet); font-weight: 400; }

.series-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.series-matrix-cell {
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: #0b161f;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.series-matrix-cell.lit {
  border-color: rgba(226, 198, 148, 0.48);
  background: linear-gradient(145deg, rgba(226, 198, 148, 0.14), rgba(14, 28, 38, 0.9));
}
.series-cell-name {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.series-matrix-cell.lit .series-cell-name { color: var(--text); font-weight: 600; }
.series-cell-count {
  font-size: 11px;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}
.series-matrix-cell.lit .series-cell-count { color: var(--gold); }

/* 毕业卡匣奖杯墙与编年史 */
.trophy-shelf-wrap {
  margin: 16px 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 21, 30, 0.72);
}
.trophy-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.trophy-pool-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(226, 198, 148, 0.36);
  background: linear-gradient(135deg, rgba(226, 198, 148, 0.1), #0b1822);
}
.trophy-pool-card img { width: 32px; height: 48px; flex-shrink: 0; }
.trophy-pool-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trophy-pool-meta strong { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trophy-pool-meta span { font-size: 10.5px; color: var(--gold); }

.collector-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 21, 30, 0.72);
}
.timeline-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #132532;
  border: 1px solid rgba(226, 198, 148, 0.35);
  font-size: 15px;
}
.timeline-body { flex: 1; min-width: 0; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.timeline-thumb { width: 28px; height: 42px; flex-shrink: 0; }

/* ============================
 * 全站藏家排行榜（脉搏条 · 五大维度 · 追赶条 · Top 3 领奖台 · Top 50 表格）
 * ============================ */
.lb-pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.lb-pulse-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(10, 21, 30, 0.8);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lb-pulse-card span { font-size: 11px; color: var(--muted); }
.lb-pulse-card strong { font: 600 22px/1.2 Georgia, serif; color: var(--text); font-variant-numeric: tabular-nums; }

.lb-board-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.lb-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #0b1721;
  color: var(--muted);
  font-size: 12.5px;
}
.lb-tab-btn:hover { color: var(--text); border-color: #466170; }
.lb-tab-btn.active {
  color: #152028;
  background: linear-gradient(135deg, #f3d9a4, #cba35c);
  border-color: var(--gold);
  font-weight: 600;
}

.lb-my-standing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-color: rgba(226, 198, 148, 0.36);
  background: linear-gradient(90deg, rgba(226, 198, 148, 0.11), rgba(14, 26, 35, 0.94));
  flex-wrap: wrap;
}
.lb-standing-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lb-standing-rank {
  min-width: 56px;
  height: 46px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: rgba(226, 198, 148, 0.14);
  color: var(--gold);
  font: 700 22px/1 Georgia, serif;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lb-standing-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.lb-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.lb-podium-card {
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-podium-card.podium-gold {
  border-color: rgba(242, 212, 146, 0.65);
  background: radial-gradient(circle at 50% 0%, rgba(242, 212, 146, 0.18), transparent 62%), #0f1f2b;
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.lb-podium-card.podium-silver { border-color: rgba(186, 206, 220, 0.48); }
.lb-podium-card.podium-bronze { border-color: rgba(208, 148, 108, 0.45); }
.lb-podium-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.lb-medal-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}
.lb-podium-watch {
  height: 122px;
  margin: 12px 0 8px;
  display: grid;
  place-items: center;
}
.lb-podium-watch img { max-height: 120px; width: auto; }
.lb-watch-empty { font-size: 36px; opacity: 0.4; }
.lb-podium-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
}
.lb-podium-sub { margin: 4px 0 8px; min-height: 22px; }
.lb-podium-metric {
  font: 600 24px/1.2 Georgia, serif;
  color: var(--gold);
  margin-bottom: 4px;
}
.lb-podium-actions {
  width: 100%;
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.lb-table tr.is-me-row {
  background: rgba(226, 198, 148, 0.1);
}
.lb-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* 藏家参观抽屉与四维 PK 对比 */
.inspect-bio {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-left: 2px solid var(--gold);
  background: rgba(226, 198, 148, 0.06);
  color: #d6e2e8;
  font-size: 12.5px;
  border-radius: 0 6px 6px 0;
}
.inspect-pk-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(9, 19, 27, 0.78);
}
.inspect-pk-rows { display: flex; flex-direction: column; gap: 10px; }
.pk-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
}
.pk-mine-val strong { color: var(--gold); }
.pk-their-val strong { color: #8fe3ff; }
.pk-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #0c1923;
  gap: 2px;
}
.pk-bar-mine { background: linear-gradient(90deg, #ab8b55, #f0d49e); }
.pk-bar-theirs { background: linear-gradient(90deg, #4b8fb0, #8fe3ff); }
.inspect-guest-cta {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(226, 198, 148, 0.36);
  background: rgba(226, 198, 148, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 分享工坊双版切换与操作栏 */
.poster-layout-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.poster-preview-box.portrait-mode {
  display: flex;
  justify-content: center;
  max-height: 58vh;
  overflow: auto;
  padding: 12px;
}
.poster-preview-box.portrait-mode svg,
.poster-preview-box.portrait-mode img {
  width: auto;
  max-width: 100%;
  max-height: 54vh;
  height: auto;
}
.poster-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .profile-passport-grid,
  .profile-dna-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .lb-board-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .profile-kpi-mini-grid,
  .lb-pulse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .series-matrix-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lb-board-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lb-podium-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lb-podium-card.podium-gold {
    transform: none;
    order: -1;
  }
  .crown-jewel-spotlight {
    flex-direction: column;
    text-align: center;
  }
  .crown-jewel-metrics {
    justify-content: center;
  }
  .profile-arv-value {
    font-size: 28px;
  }
  .dna-atelier-mini {
    grid-template-columns: minmax(0, 1fr);
  }
}
