:root {
  --blue: #1772f6; --ink: #121212; --muted: #8590a6; --line: #ebebeb; --bg: #f6f6f6; --card: #fff;
  --ok: #2e9e5b; --bad: #d23c3c;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--blue); text-decoration: none; }
button { font: inherit; cursor: pointer; }

.top {
  position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line);
}
.top-in { max-width: 760px; margin: 0 auto; padding: 0 16px; height: 52px; display: flex; align-items: center; gap: 14px; }
.logo { font-weight: 700; color: var(--blue); font-size: 17px; margin-right: auto; white-space: nowrap; }
.top a.nav, .top button.nav { color: #444; border: 0; background: none; padding: 0; font-size: 14px; }
.pill { border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.score { font-size: 13px; color: #444; white-space: nowrap; }
.score b { color: var(--blue); }

.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border-radius: 6px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(18,18,18,.06); }
.chips { display: flex; gap: 6px; margin-bottom: 6px; }
.chip { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 3px; padding: 0 8px; }
.chip.tricky { color: #c0392b; background: #fdecea; }
h2.q { font-size: 18px; margin: 0 0 12px; line-height: 1.5; }

.author { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.ava { width: 38px; height: 38px; border-radius: 4px; background: #dfe6f1; color: #6b7a95; display: grid; place-items: center; font-weight: 600; flex: none; }
.aname { font-weight: 600; font-size: 15px; }
.ahead { color: #646464; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.trnote { font-size: 12px; color: #8590a6; background: #f6f6f6; border-radius: 4px; padding: 4px 8px; margin: 8px 0; }
.badge { color: #e0a100; font-size: 12px; }

.text { white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: hidden; position: relative; }
.text.open { max-height: none; }
.text.clamped:not(.open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #fff); }
.more { border: 0; background: none; color: var(--blue); padding: 4px 0; font-size: 14px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 6px; }
.goods { color: #e07b00; }

.pick h3 { margin: 0 0 10px; font-size: 16px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 10px; font-size: 15px; color: #333; }
.opt:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.opt:disabled { cursor: default; opacity: .55; }
.opt.chosen { opacity: 1; border-color: var(--blue); color: var(--blue); background: #f0f6ff; }
.opt.truth { opacity: 1; border-color: var(--ok); color: var(--ok); }
.opt { position: relative; }
.opt.aipick::after { content: "AI"; position: absolute; top: -8px; right: 6px; background: #444; color: #fff; font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 3px; }
.card { scroll-margin-top: 64px; }
.prog { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.prog button { border: 0; background: none; color: var(--muted); text-decoration: underline; padding: 4px 0; font-size: 13px; }
.next.alt { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.strip { margin-top: 12px; }
.strip-h { font-weight: 600; font-size: 14px; }
.cells { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin: 8px 0; }
.cell { aspect-ratio: 1; border: 0; border-radius: 3px; padding: 0; font-size: 11px; color: #fff; background: #e6e6e6; min-width: 0; }
.cell.cards { background: #e07b00; } .cell.contact { background: #d23c3c; } .cell.links { background: #7a4fd6; } .cell.brand { background: #e0a100; } .cell.none { background: #e6e6e6; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: #444; }
.legend i.cell { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 4px; }
.cellinfo { min-height: 1.7em; margin-top: 4px; }

.reveal { display: none; }
.reveal.on { display: block; }
.note { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.ktahold { display: flex; gap: 10px; align-items: flex-start; }
.ktahold .kta-box { flex: 1; margin-top: 0; }
.ktahold img { width: 64px; flex: none; }
.verdict { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; display: none; }
.verdict.on { display: block; }
.vrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.tag { border-radius: 4px; padding: 1px 8px; font-size: 13px; color: #fff; }
.tag.ok { background: var(--ok); } .tag.bad { background: var(--bad); }
.why { font-size: 14px; color: #333; }
.small { color: var(--muted); font-size: 12px; }
.next { display: block; width: 100%; margin-top: 12px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; padding: 10px; font-size: 15px; }

.done { text-align: center; }
.done img { width: 140px; }
.big { font-size: 28px; font-weight: 700; }

/* Game-style tour: dim everything, lift the target, mascot talks. */
.tour-block { position: fixed; inset: 0; z-index: 90; }
.tour-on { position: relative; z-index: 95; box-shadow: 0 0 0 100vmax rgba(0,0,0,.62); border-radius: 6px; }
.tour-talk {
  position: fixed; z-index: 100; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); display: flex; align-items: flex-end; gap: 6px;
}
.tour-talk.up { top: 64px; bottom: auto; }
.tour-talk img { width: 110px; flex: none; }
.bubble { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 4px 18px rgba(0,0,0,.25); flex: 1; position: relative; margin-bottom: 30px; }
.bubble::before { content: ""; position: absolute; left: -8px; bottom: 18px; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble .btns { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.bubble .skip { border: 0; background: none; color: var(--muted); font-size: 13px; }
.bubble .go { border: 0; background: var(--blue); color: #fff; border-radius: 4px; padding: 3px 14px; }
.steps { color: var(--muted); font-size: 12px; }

.foot { max-width: 760px; margin: 8px auto 32px; padding: 0 16px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 520px) {
  .card { padding: 14px; }
  .top-in { gap: 10px; }
  .score { font-size: 12px; }
  .tour-talk img { width: 80px; }
  .cells { grid-template-columns: repeat(10, 1fr); }
  .pill { white-space: nowrap; min-height: 44px; padding: 0 14px; }
  .top button.nav { min-height: 44px; }
  .prog button { min-height: 44px; }
}
