/* PullMath — "ballpark almanac": warm paper, navy pinstripes, stitch red, graded-slab cards. */
:root {
  --paper: #f2eee4;
  --paper-2: #e9e3d4;
  --card: #fffdf7;
  --ink: #121c33;
  --muted: #586073;
  --line: #dcd4c2;
  --line-2: #ece6d8;
  --navy: #13203d;
  --navy-2: #1d2d52;
  --on-navy: #f2eee4;
  --on-navy-muted: #b9c0d3;
  --stitch: #d2382f;
  --accent: #13203d;
  --hit: #19804a;
  --buy: #1f5fbf; --rip: #b4441a;
  --t1: #19804a; --t1-bg: #d9f0e2; --t1-hi: #74e0a3;
  --t2: #4a7810; --t2-bg: #e8f1d2; --t2-hi: #c6e57c;
  --t3: #8a5c00; --t3-bg: #f9ecc6; --t3-hi: #f6cd5e;
  --t4: #b0461a; --t4-bg: #fadfcf; --t4-hi: #ff9f6a;
  --t5: #b3262b; --t5-bg: #f6d6d6; --t5-hi: #ff8080;
  --display: "Big Shoulders Display", "Noto Sans TC", "PingFang TC", sans-serif;
  --body: "Instrument Sans", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 0 var(--line-2), 0 14px 30px -22px rgba(18, 28, 51, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1322; --paper-2: #131c30; --card: #172238; --ink: #ece6d6; --muted: #a3abbb;
    --line: #2b3652; --line-2: #1e2940; --navy: #08101f; --navy-2: #15213d; --accent: #ece6d6;
    --stitch: #ef5b4f; --hit: #4fcf8a; --buy: #8db6f7; --rip: #f2a07d;
    --t1: #6fdb9e; --t1-bg: #14392a; --t2: #b9dc72; --t2-bg: #283516; --t3: #f2c75a; --t3-bg: #3a2f13;
    --t4: #ff9f6a; --t4-bg: #432617; --t5: #ff8585; --t5-bg: #45191c;
    --shadow: 0 1px 0 var(--line-2), 0 18px 34px -24px rgba(0, 0, 0, 0.8);
  }
}
.t1 { --tc: var(--t1); --tb: var(--t1-bg); --th: var(--t1-hi); }
.t2 { --tc: var(--t2); --tb: var(--t2-bg); --th: var(--t2-hi); }
.t3 { --tc: var(--t3); --tb: var(--t3-bg); --th: var(--t3-hi); }
.t4 { --tc: var(--t4); --tb: var(--t4-bg); --th: var(--t4-hi); }
.t5 { --tc: var(--t5); --tb: var(--t5-bg); --th: var(--t5-hi); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 16px/1.55 var(--body);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 8px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 52px; }
main.page { padding-top: 28px; gap: 28px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--paper) 88%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 900 24px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.logo svg { width: 26px; height: 26px; }
.site-header nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 500; }
.site-header nav > a { color: var(--muted); text-decoration: none; }
.site-header nav > a:hover { color: var(--ink); }
.langs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.lang { font-size: 13px; padding: 3px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang.on { background: var(--ink); color: var(--paper); }
.sample-banner { background: var(--t3-bg); color: var(--t3); font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }

/* ---------- hero band (navy pinstripes) ---------- */
.hero-band {
  color: var(--on-navy); padding: 26px 0 104px;
  background:
    radial-gradient(ellipse 60% 90% at 85% 0%, rgba(210, 56, 47, 0.22), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 22px),
    var(--navy);
}
.hero-band .crumbs, .hero-band .crumbs a { color: var(--on-navy-muted); }
.crumbs { font-size: 13px; }
.hero-id { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.jersey {
  flex: none; width: 92px; height: 92px; border-radius: 20px; display: grid; place-items: center;
  font: 900 46px/1 var(--display); color: var(--on-navy); letter-spacing: 0.02em;
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); border: 3px solid rgba(242, 238, 228, 0.85);
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 6px var(--stitch);
}
.hero-meta { margin: 0; color: var(--on-navy-muted); font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-band h1 { font: 900 clamp(2.4rem, 6vw, 4.4rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin: 6px 0 4px; }
html[lang^="zh"] .hero-band h1 { letter-spacing: 0; line-height: 1.1; }
.hero-count { margin: 0; color: var(--on-navy-muted); font-size: 14px; }
.hero-band .lead { max-width: 760px; margin: 20px 0 0; font-size: 17px; color: var(--on-navy-muted); }
.hero-band .lead strong { color: var(--on-navy); }
.rc { display: inline-block; font: 700 11px/1 var(--body); letter-spacing: 0.04em; background: var(--stitch); color: #fff; border-radius: 4px; padding: 4px 6px; vertical-align: 2px; }

.scoreboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.score { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; animation: rise 0.5s both; }
.score:nth-child(2) { animation-delay: 60ms; } .score:nth-child(3) { animation-delay: 120ms; }
.score span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-muted); }
.score strong { font: 800 42px/1.05 var(--display); color: var(--th, #9cc2ff); letter-spacing: 0.01em; }
.score strong small { font: 600 15px var(--body); }
.score em { font-style: normal; font-size: 13px; color: var(--on-navy-muted); }

/* ---------- section titles ---------- */
.sec-title h2, main h2 { font: 800 32px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
html[lang^="zh"] .sec-title h2, html[lang^="zh"] main h2 { font-weight: 900; font-size: 28px; letter-spacing: 0; }
.sec-title h2::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 8px; background: repeating-linear-gradient(90deg, var(--stitch) 0 7px, transparent 7px 11px); }
.sec-title p { margin: 10px 0 0; color: var(--muted); max-width: 720px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.muted { color: var(--muted); }

/* ---------- odds ladder ---------- */
.ladder-card { margin-top: -72px; position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 24px 0 14px; }
.ladder-card .sec-title { padding: 0 28px; }
.ladder-scroll { overflow-x: auto; padding: 18px 40px 4px 28px; }
.ladder { position: relative; min-width: 780px; }
.ladder-marks { position: relative; height: calc(var(--rows) * 34px + 16px); }
.mark { position: absolute; top: calc(var(--row) * 34px); bottom: 0; width: 0; border-left: 2px solid var(--tc); animation: drop 0.45s both; animation-delay: calc(var(--i) * 45ms + 150ms); }
.mark::after { content: ""; position: absolute; bottom: -7px; left: -8px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 3px solid var(--tc); }
.mark-label { position: absolute; top: 0; left: -2px; white-space: nowrap; background: var(--tb); color: var(--tc); border-radius: 0 8px 8px 0; padding: 5px 10px; font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mark.flip .mark-label { left: auto; right: 0; border-radius: 8px 0 0 8px; text-align: right; }
.mark-label b { font-weight: 700; margin-right: 4px; }
.ladder-axis { position: relative; height: 28px; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.band { position: absolute; top: 0; bottom: 0; background: var(--tb); border-right: 2px solid var(--card); display: grid; place-items: center; }
.band em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tc); white-space: nowrap; overflow: hidden; }
.band.t1 em { display: none; }
.ladder-ticks { position: relative; height: 20px; margin-top: 4px; }
.tick { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ladder-anchors { position: relative; height: 56px; border-top: 1px dashed var(--line); margin-top: 4px; }
.anchor { position: absolute; top: 10px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.anchor::before { content: ""; position: absolute; top: -11px; width: 1px; height: 8px; background: var(--muted); }
.anchor .die, .analogy .die { color: var(--ink); }
.dice { display: inline-flex; align-items: center; gap: 2px; }
.dice b { font-size: 10px; color: var(--ink); margin-left: 2px; }
.ladder-unit { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 14px var(--body); min-height: 38px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.chip:hover { border-color: var(--ink); }
.chip small { color: var(--muted); margin-left: 3px; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.on small { color: inherit; opacity: 0.7; }

/* ---------- slabs (graded-card tiles) ---------- */
.slabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.slab { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; animation: rise 0.5s both; animation-delay: calc(var(--i) * 45ms); }
.slab:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line-2), 0 22px 40px -26px rgba(18, 28, 51, 0.6); }
.slab-label { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 13px 14px 12px 16px; background: linear-gradient(180deg, var(--paper-2), var(--card)); border-bottom: 3px solid var(--tc); }
.slab-label h3 { font-size: 16px; font-weight: 700; margin-top: 6px; line-height: 1.25; }
.slab-prod { font-size: 13px; color: var(--muted); }
.grade { flex: none; min-width: 70px; text-align: center; border: 2px solid var(--tc); border-radius: 10px; padding: 4px 6px 5px; background: var(--card); display: flex; flex-direction: column; }
.grade small { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.grade strong { font: 900 30px/1 var(--display); color: var(--tc); }
.grade span { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tc); white-space: nowrap; }
.slab-body { padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.slab-odds { display: flex; align-items: baseline; gap: 8px; }
.slab-odds strong { font: 800 50px/0.9 var(--display); color: var(--tc); letter-spacing: 0.005em; font-variant-numeric: tabular-nums; }
html[lang^="zh"] .slab-odds strong { font-size: 44px; }
.slab-odds span { font-weight: 600; color: var(--tc); }
.meter { display: inline-flex; gap: 3px; }
.meter i { width: 9px; height: 14px; border-radius: 2px; background: color-mix(in srgb, var(--tc) 20%, transparent); }
.meter i.on { background: var(--tc); }
.slab .meter { display: flex; width: 100%; gap: 4px; }
.slab .meter i { flex: 1; height: 6px; border-radius: 999px; }
.analogy { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px; border-radius: 10px; background: var(--line-2); font-size: 13px; color: var(--ink); line-height: 1.35; }
.analogy > .die, .analogy > .dice { flex: none; }
.slab-box { margin: 0; font-size: 14px; }
.slab-box small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
/* parallel "rainbow": every version of the set, easiest first, each with its color chip */
.sw { display: inline-block; flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(18, 28, 51, 0.22); vertical-align: -2px; }
.slab-head { margin: 0 0 -4px; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.slab-head small, .rv-name small { font-weight: 600; color: var(--muted); letter-spacing: 0; }
.rainbow-wrap { border-top: 1px solid var(--line-2); padding-top: 10px; }
.rainbow-title { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rainbow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rainbow button { width: 100%; display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 9px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; font: 500 13.5px var(--body); color: var(--ink); text-align: left; cursor: pointer; }
.rainbow button:hover, .rainbow button:focus-visible { background: var(--line-2); }
.rainbow em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tc); padding: 1px 8px; border-radius: 999px; background: var(--tb); font-size: 12.5px; white-space: nowrap; }
.rainbow-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-radius: 8px; list-style: none; }
.rainbow-more summary::-webkit-details-marker { display: none; }
.rainbow-more summary::before { content: "+"; display: inline-block; width: 14px; margin-right: 9px; text-align: center; font-weight: 800; }
.rainbow-more[open] summary::before { content: "−"; }
.rainbow-more summary:hover { background: var(--line-2); color: var(--ink); }
.cost span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cost strong { font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.heat th[scope="row"] small, .heat .cat-sep small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.heat th[scope="row"] .sw { margin-right: 4px; }
h2 small.muted { font: 500 14px var(--body); margin-left: 6px; }
.sample-banner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.meta a { color: inherit; }
.slab-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px 14px; border-top: 1px dashed var(--line); }
.calc-link { font: 600 13px var(--body); min-height: 40px; color: var(--paper); background: var(--ink); border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; white-space: nowrap; transition: transform 0.15s; }
.calc-link:hover { transform: translateY(-1px); }

/* ---------- legend + heatmap ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 12px; font-size: 13px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg b { width: 14px; height: 14px; border-radius: 4px; background: var(--tb); border: 2px solid var(--tc); }
.lg small { color: var(--muted); }
.table-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.heat { border-collapse: separate; border-spacing: 4px; padding: 4px; }
.heat th, .heat td { border: 0; padding: 8px 10px; }
.heat thead th.grp { text-align: center; font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); padding-top: 12px; }
.heat thead th.grp a { color: inherit; text-decoration: none; }
.heat th.cfg { text-align: center; font-weight: 600; color: var(--muted); white-space: nowrap; }
.heat th small, .heat tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }
.heat tbody th { font-weight: 600; color: var(--ink); font-size: 14px; white-space: nowrap; position: sticky; left: 0; background: var(--card); z-index: 1; }
.heat .corner { position: sticky; left: 0; background: var(--card); z-index: 2; vertical-align: bottom; }
.heat td.h { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--tb); color: var(--tc); border-radius: 8px; }
.heat td.best { box-shadow: inset 0 0 0 2px var(--tc); }
.heat .star { font-style: normal; margin-right: 3px; }
.heat td.none { text-align: center; color: var(--line); background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line-2) 5px 6px); border-radius: 8px; }
.heat tr.cat-sep th { background: transparent; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 12px 8px 2px; position: static; }

/* ---------- calculator ---------- */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 26px 28px 28px; scroll-margin-top: 80px; }
.calc-grid { display: grid; grid-template-columns: 2fr 1.3fr 0.9fr; gap: 12px; margin-top: 20px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.calc select, .calc input, #player-search { font: 400 16px var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; min-height: 46px; width: 100%; }
.stepper { display: flex; }
.stepper input { text-align: center; border-radius: 0; border-left: 0; border-right: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper button { flex: none; width: 46px; min-height: 46px; font: 600 20px var(--body); color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); cursor: pointer; }
.stepper button:first-child { border-radius: 10px 0 0 10px; }
.stepper button:last-child { border-radius: 0 10px 10px 0; }
.calc-out { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 12px; margin-top: 18px; }
.stat { background: var(--paper); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat strong { font: 800 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.stat strong small { font: 600 13px var(--body); }
.stat em { font-style: normal; font-size: 13px; color: var(--muted); }
.stat-main { background: var(--navy); color: var(--on-navy); }
.stat-main span, .stat-main em { color: var(--on-navy-muted); }
.stat-main strong { font-size: 46px; color: var(--t1-hi); }
.stat[class*=" t"] { background: var(--tb); }
.stat[class*=" t"] strong, .stat[class*=" t"] em { color: var(--tc); }
.prog { height: 8px; background: rgba(255, 255, 255, 0.14); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.prog b { display: block; height: 100%; background: var(--t1-hi); border-radius: 999px; transition: width 0.3s; }
.calc-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.calc-viz { display: grid; grid-template-columns: 1fr 1.25fr; gap: 14px; margin-top: 14px; }
.viz-card { margin: 0; background: var(--paper); border-radius: 14px; padding: 14px 16px; }
.viz-card figcaption { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.viz-card p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.people i { aspect-ratio: 1; border-radius: 3px; background: var(--line); transition: background 0.25s; }
.people i.on { background: var(--hit); }
.people i.part { background: linear-gradient(to top, var(--hit) calc(var(--f) * 100%), var(--line) 0); outline: 2px solid var(--hit); outline-offset: 1px; }
#calc-curve svg { width: 100%; max-width: 520px; height: auto; display: block; margin: 0 auto; overflow: visible; }
#calc-curve .g { stroke: var(--line); stroke-dasharray: 3 4; }
#calc-curve .gl, #calc-curve .ax { fill: var(--muted); font: 10px var(--body); }
#calc-curve .area { fill: var(--hit); opacity: 0.14; }
#calc-curve .line { fill: none; stroke: var(--hit); stroke-width: 2.5; stroke-linejoin: round; }
#calc-curve .now { stroke: var(--ink); stroke-dasharray: 2 3; }
#calc-curve .dot { fill: var(--card); stroke: var(--hit); stroke-width: 3; }
#calc-curve .nl { fill: var(--ink); font: 700 11px var(--body); }

/* ---------- faq, method, prose ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.faq details:first-of-type { margin-top: 18px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.method { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.method h2 { font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.prose { max-width: 760px; }
.prose h1 { font: 900 clamp(2.2rem, 5vw, 3.4rem)/1 var(--display); text-transform: uppercase; }
.steps li { margin-bottom: 12px; }

/* ---------- product page ---------- */
.page > h1 { font: 900 clamp(2rem, 5vw, 3.2rem)/1 var(--display); text-transform: uppercase; }
html[lang^="zh"] .page > h1 { line-height: 1.15; }
.meta { color: var(--muted); margin: 0; }
.page section h2 { margin-bottom: 12px; }
.cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; border-radius: 4px; padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.cat-autograph { border-color: var(--rip); color: var(--rip); }
.cat-parallel { border-color: var(--buy); color: var(--buy); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; }

/* ---------- home ---------- */
.hero-home { padding: 56px 0 64px; }
.hero-home h1 { font: 900 clamp(2.6rem, 7vw, 5rem)/0.95 var(--display); text-transform: uppercase; max-width: 820px; }
html[lang^="zh"] .hero-home h1 { line-height: 1.15; }
.hero-home p { color: var(--on-navy-muted); font-size: 18px; max-width: 640px; }
#player-search { font-size: 18px; min-height: 58px; max-width: 560px; margin-top: 10px; border-radius: 14px; background: var(--card); color: var(--ink); border: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); padding: 0 18px; }
main.wrap > section > h2 { margin: 36px 0 16px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.grid a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.2s; }
.grid a:hover { transform: translateY(-2px); }
.grid a strong { font-size: 17px; }
.grid a span { display: block; color: var(--muted); font-size: 13px; }
.grid a .hint { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--tb, var(--line-2)); color: var(--tc, var(--muted)); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 20px 0 36px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.55s both 0.1s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .site-header nav > a { display: none; }
  .hero-band { padding-bottom: 92px; }
  .hero-id { gap: 14px; align-items: flex-start; }
  .jersey { width: 64px; height: 64px; font-size: 30px; border-radius: 14px; }
  .scoreboard { grid-template-columns: 1fr; gap: 8px; }
  .score strong { font-size: 34px; }
  .ladder-card .sec-title { padding: 0 18px; }
  .ladder-scroll { padding: 16px 30px 4px; }
  .slabs { grid-template-columns: 1fr; }
  .calc { padding: 20px 16px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr 1fr; }
  .stat-main { grid-column: 1 / -1; }
  .calc-viz { grid-template-columns: 1fr; }
  .sec-title h2, main h2 { font-size: 28px; }
}
