/* fc-tracker.com v2 – the text pages (download, FAQ, Champions tracker + leaderboard, Optimize, legal) in the brand
   v2 language: their generators keep their markup and words; this file gives them v2 type, cut-corner surfaces and
   tokens. The old page files (download.css, faq.css, champions.css) still draw their own parts – their old variable
   names map to v2 tokens here. Tokens only. */
body.site {
  --muted: var(--text-2);
  --display: var(--f-display);
  --font-display: var(--f-display);
  --body: var(--f-body);
  --font-body: var(--f-body);
  --accent-hi: var(--accent-text);
  --accent-2: var(--accent);
  --surface-hi: var(--surface-2);
  --bg-2: var(--surface-2);
  --spring: var(--ease-out);
  --tag-gold: var(--coin);
  color: var(--text);
}
/* the old text pages only: the v2 pages (home, story, guide – main holds .wrapw) keep the mockup's own type */
body.site:not(:has(main .wrapw)) { font: 400 16px/1.6 var(--f-body); }
.site main { display: block; }
.site main:not(:has(.wrapw)) { max-width: 1280px; margin: 0 auto; padding: 48px 32px 0; }
.site main.page { max-width: 880px; }
.site main.champs-page { max-width: 1280px; }
@media (max-width: 860px) { .site main:not(:has(.wrapw)) { padding: 32px 16px 0; } }

/* type: Saira 800 uppercase condensed for h1/h2, sentence case h3 */
.site main:not(:has(.wrapw)) h1 { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: .88; font-size: clamp(44px, 6vw, 80px); margin: 0 0 20px; }
.site main:not(:has(.wrapw)) h2 { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; font-size: clamp(28px, 3.2vw, 40px); margin: 0 0 14px; }
.site main:not(:has(.wrapw)) h3 { font-family: var(--f-display); font-stretch: var(--display-stretch); font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.15; font-size: 22px; margin: 0 0 10px; }
.site main:not(:has(.wrapw)) p { margin: 0 0 1em; color: var(--text-2); }
.site main:not(:has(.wrapw)) .lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 60ch; }
.site main:not(:has(.wrapw)) .eyebrow { display: block; margin: 0 0 14px; color: var(--accent-text); font: 700 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.site .fine { color: var(--text-3); font-size: 13px; line-height: 1.55; }
.site .meta { color: var(--text-3); font-size: 14px; }
.prose section { margin-top: 40px; }
.prose section + section { padding-top: 32px; border-top: 1px solid var(--line); }
.site code { font: 600 .92em/1 ui-monospace, Consolas, monospace; padding: 2px 6px; background: var(--fill); }

/* surfaces: one cut-corner panel language (no rounded corners, no glow) */
.cta-box, .card, .site details:not(.sh-more), .steps li {
  --cut: var(--cut-m);
  background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line);
}
.cta-box { --cut: var(--cut-xl); margin: 64px 0 0; padding: 40px 44px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; background: var(--active-bg); box-shadow: none; }
.cta-box p { margin: 0 auto 0 0; flex: 1 1 320px; color: var(--active-fg) !important; font-size: 17px; }
@media (max-width: 720px) { .cta-box { padding: 28px 22px; } }
.card { padding: 24px; }
.card h3::before { display: none; }
.card p, .steps p, .site details p { color: var(--text-2); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 22px; box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--text); }
.steps .num { width: 36px; height: 36px; display: inline-grid; place-items: center; margin: 0 0 12px; background: var(--active-bg); color: var(--active-fg); font: 800 18px/1 var(--f-num); font-stretch: 75%; clip-path: polygon(var(--cut-s) 0, 100% 0, 100% calc(100% - var(--cut-s)), calc(100% - var(--cut-s)) 100%, 0 100%, 0 var(--cut-s)); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); margin: 28px 0; }
@media (max-width: 900px) { .grid, .grid.two, .steps { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 9px; height: 9px; background: var(--done); transform: rotate(45deg); }
.site details:not(.sh-more) { margin-bottom: 10px; }
.site details:not(.sh-more) > summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.site details:not(.sh-more) > summary::-webkit-details-marker { display: none; }
.site details:not(.sh-more) > summary::after { content: "+"; position: absolute; right: 20px; top: 12px; color: var(--text-2); font: 800 22px/1 var(--f-num); }
.site details[open]:not(.sh-more) > summary::after { content: "–"; }
.site details:not(.sh-more) p { padding: 0 20px 16px; margin: 0; }

/* figures (Optimize: the real game screens) */
.site figure.shot { margin: 28px 0; }
.site figure.shot img { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--line); }
.site figure.shot figcaption { margin-top: 8px; color: var(--text-3); font-size: 14px; }
.web-try { margin: 14px 0 0; font-size: 15px; }
.web-try a { color: var(--text) !important; font-weight: 700; text-decoration: none !important; }
.web-try a:hover { color: var(--accent-text) !important; }

/* Champions leaderboard (beta) */
.cb-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 18px 0; color: var(--text-2); font-weight: 700; }
.cb-bar select { margin-left: 8px; height: 40px; padding: 0 12px; font: 700 14px var(--f-body); color: var(--text); background: var(--fill); border: 0; box-shadow: inset 0 0 0 1px var(--line); }
.cb-count { color: var(--done-text); }
.cb-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 820px) { .cb-grid { grid-template-columns: 1fr; } }
.cb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cb-table th, .cb-table td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
.cb-table th { color: var(--text-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.cb-table td:first-child { color: var(--text-3); width: 40px; }
.cb-table b { font: 800 22px/1 var(--f-num); font-stretch: 75%; }
.cb-table-wrap { overflow-x: auto; }
.cb-hist { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; height: 160px; align-items: end; padding: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cb-col { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; }
.cb-col span { display: block; min-height: 2px; background: var(--done); }
.cb-col small { text-align: center; color: var(--text-3); font-size: 12px; font-family: var(--f-num); font-stretch: 75%; }
.cb-how { margin-top: 40px; }
.cb-how ol { padding-left: 20px; color: var(--text-2); }

/* the interactive demo needs a mouse or a controller – on a phone it stays away */
@media (max-width: 760px) { .demo, .ct-demo { display: none; } }
@media (max-width: 720px) { .site main:not(:has(.wrapw)) .eyebrow { font-size: 12px; } }
