/* 首页、结果页的补充样式：在 base.css 的黄白贴纸底子上，首页 hero / 排行榜 / 报告通用块 */
main.wide { max-width: 680px; padding-top: 7vh; }
.topbar + main.wide { padding-top: 0; }
.muted { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.foot { text-align: center; margin-top: 28px; }
/* 页脚品牌行 */
.brandfoot { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 34px; text-align: center; }
.brandfoot .brandmark { font-size: 13px; }
.brandfoot p { margin: 0; font-size: 13px; color: var(--faint); }

/* 首页 */
.hero { text-align: center; padding: 6px 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.eyebrow img { width: 20px; height: 20px; border-radius: 6px; }
.hero h1 { font-size: clamp(30px, 8vw, 48px); line-height: 1.18; margin: 0 0 16px; letter-spacing: -.01em; }
.lead { text-wrap: balance; font-size: clamp(15px, 4.2vw, 17px); color: var(--muted); margin: 0 auto; max-width: 30em; }
.lead b { color: var(--text); }
.cta.big { width: min(100%, 320px); padding: 15px 38px; font-size: 18px; margin-top: 22px; border-radius: 999px; }
.more summary { cursor: pointer; font-weight: 800; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "展开"; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.more[open] summary::after { content: "收起"; }
.more[open] summary { margin-bottom: 14px; }
.panel { border-radius: 20px; padding: 22px 24px; margin-top: 18px; }
.panel h2 { font-size: 18px; margin: 0 0 12px; }
.history { display: grid; gap: 8px; }
.history a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.history small { color: var(--faint); }

/* 结果页 */
.wait { text-align: center; padding: 40px 0; }
.wait .spin { width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid var(--accent-soft);
  border-top-color: var(--accent); animation: spin .9s linear infinite; }
.wait h1 { font-size: 22px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
@media (max-width: 520px) {
  .panel { padding: 18px 16px; }
  .bar { grid-template-columns: 5.2em 1fr 2em; }
}
.actions .cta { margin-top: 0; }
.radar-wrap { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 14px; align-items: center; }
@media (max-width: 560px) { .radar-wrap { grid-template-columns: 1fr; justify-items: center; } }
.radar { width: 100%; max-width: 300px; }
.radar .grid { fill: none; stroke: var(--border); }
.radar .shape { fill: color-mix(in srgb, var(--accent) 45%, transparent); stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.radar text { font-size: 11px; fill: var(--muted); }
.bars { display: grid; gap: 8px; width: 100%; }
.bar { display: grid; grid-template-columns: 5.5em 1fr 2.4em; gap: 8px; align-items: center; font-size: 14px; }
.bar i { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.bar i b { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.detail { display: grid; gap: 12px; }
.item { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.item header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.item header b { font-size: 15px; }
.item header span { color: var(--accent-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.item q { display: block; margin: 8px 0 6px; padding-left: 10px; border-left: 3px solid var(--accent); color: var(--text); font-size: 14px; }
.item q::before, .item q::after { content: ""; }
.item p { margin: 0; color: var(--muted); font-size: 14px; }
.tips { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; font-size: 15px; }
.tips li::marker { color: var(--accent-text); font-weight: 800; }
.best { font-size: 17px; margin: 0; }
.lead-form { display: grid; gap: 10px; }
.lead-form input[type=text] { width: 100%; padding: 11px 14px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--text); font: inherit; font-size: 15px; }
.lead-form input[type=text]:focus, .join-row input:focus, .join-row select:focus { outline: none; border-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-size: 14px; cursor: pointer; }
.checks input, .consent input { accent-color: var(--accent); }
.ok-text { color: var(--ok); font-size: 14px; margin: 4px 0 0; }
.sharebox { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; padding: 16px; background: rgba(20, 16, 6, .7); }
.sharebox.on { display: grid; }
.sharebox .inner { max-width: 360px; width: 100%; text-align: center; color: #fff; }
.sharebox img { width: auto; max-width: 100%; max-height: 68vh; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.sharebox p { font-size: 14px; margin: 12px 0; }
.sharebox .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sharebox .row2 .cta { margin-top: 0; }
.sharebox .ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); box-shadow: none; }

/* ---------- 首屏：钩子 + 开始按钮 + 人格滚动条 ---------- */
.hero.first { min-height: calc(100svh - 56px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 0 18px; }
.hero.first h1 { font-size: clamp(34px, 10vw, 56px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.hero.first h1 em { font-style: normal; }
.hero.first .lead { font-weight: 700; color: var(--text); letter-spacing: .02em; }
.marquee { width: 100vw; overflow: hidden; margin: 22px 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 6px; width: max-content; animation: slide 40s linear infinite; }
.marquee figure { margin: 0; width: 112px; flex: none; text-align: center; }
.marquee img { width: 112px; height: 112px; display: block; }
.marquee figcaption { font-size: 13px; color: var(--muted); margin-top: -6px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }
.cta.go { font-size: 20px; font-weight: 900; padding: 17px 40px; margin-top: 18px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.cta.go:active { animation: none; }
.proof { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.proof b { color: var(--hot-text); }
@media (max-width: 520px) { .marquee figure, .marquee img { width: 92px; } .marquee img { height: 92px; } }
/* 首页顶栏：左上角闪电说出品 */
.topbar { display: flex; justify-content: space-between; align-items: center; max-width: 680px; margin: 0 auto; padding: 14px 16px 0; }
.topbar a.site { font-size: 13px; color: var(--muted); }

/* 排行榜 */
.board-head { display: flex; justify-content: space-between; align-items: baseline; }
.muted-sm { color: var(--muted); font-size: 13px; margin: 0; }
.unlock p { margin: 0 0 8px; font-size: 15px; }
.unlock b { color: var(--hot-text); }
.bar-track { height: 14px; border-radius: 7px; background: var(--surface-2); border: 2px solid var(--line); overflow: hidden; margin: 6px 0 10px; }
.bar-track i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--hot) 8px 16px); min-width: 6px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rank-list li { display: grid; grid-template-columns: 26px 40px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.rank-list .no { font-weight: 900; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rank-list li:nth-child(-n+3) .no { color: var(--hot-text); }
.rank-list img { width: 40px; height: 40px; }
.rank-list .who { display: flex; flex-direction: column; min-width: 0; }
.rank-list .who b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list .who small { color: var(--muted); font-size: 12px; }
.rank-list .pts { font-size: 20px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.rank-list .pts small { font-size: 12px; font-weight: 600; margin-left: 1px; }

/* ---------- 报告页：排名 / 上榜 ---------- */
.ranks { display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 3.5em auto 1fr; gap: 10px; align-items: baseline; padding: 10px 14px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.rank-row span { color: var(--muted); font-size: 14px; }
.rank-row b { font-size: 20px; font-weight: 900; white-space: nowrap; }
.rank-row b.locked { font-size: 16px; color: var(--hot-text); }
.rank-row small { color: var(--muted); font-size: 12px; text-align: right; }
@media (max-width: 520px) { .rank-row { grid-template-columns: 3em 1fr; } .rank-row small { grid-column: 1 / -1; text-align: left; } }
.join { margin-top: 14px; }
.join-row { display: grid; grid-template-columns: 7em 1fr auto; gap: 8px; margin-top: 8px; }
.join-row select, .join-row input { padding: 10px 12px; border: 2px solid var(--border); border-radius: 12px; background: var(--surface);
  color: var(--text); font: inherit; font-size: 15px; min-width: 0; }
.join-row .cta { margin: 0; width: auto; padding: 10px 18px; }
@media (max-width: 420px) { .join-row { grid-template-columns: 1fr 1fr; } .join-row .cta { grid-column: 1 / -1; } }
/* 下拉框用自己画的箭头：浏览器自带的箭头位置不统一，手机上会歪到中间 */
.join-row select { -webkit-appearance: none; appearance: none; min-width: 0; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23857f6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }

/* 结果页 · 翻车回放：每个场景的版本缩略图 + 把它掰回来的那句话 */
.replay { display: grid; gap: 16px; }
.replay header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 15px; }
.replay header span { color: var(--muted); font-size: 13px; }
.replay .vers { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.replay figure { margin: 0; flex: none; text-align: center; font-size: 11px; color: var(--muted); }
.replay img { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.replay q { display: block; margin-top: 8px; font-size: 14px; }

/* 留资同意框、群二维码 */
.consent { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 14px; }
.group-qr { width: 200px; height: 200px; object-fit: contain; border-radius: 14px; background: #fff; padding: 8px; margin: 8px auto 4px; display: block;
  border: 2px solid var(--line); }

/* 成就徽章：人格下面一排小贴纸，高光是黄，名场面是橙 */
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--text);
  border: 1.5px solid var(--line); }
.badge.fun { background: var(--hot-soft); }

/* 首页：朋友发来的 PK 链接，首屏顶上亮出对方战绩 */
.pk-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 8px 16px 8px 8px; border-radius: 18px;
  background: var(--surface); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--hot); color: var(--text); text-decoration: none;
  text-align: left; font-size: 15px; }
.pk-banner img { width: 52px; height: 52px; flex: none; }
.pk-banner b { color: var(--hot-text); }
