/* Landing pages (game pages, sensitivity converter). Same palette as the game's loading screen. */
:root {
  --bg: #08090d;
  --panel: rgba(255, 255, 255, .035);
  --edge: rgba(255, 255, 255, .08);
  --text: #cfc7bb;
  --head: #f4efe8;
  --muted: #9a948b;
  --accent: #ff8a5c;
  --warm: linear-gradient(135deg, #ff8a3d 0%, #ff4655 55%, #e8305a 100%);
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --wide: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; overflow-x: clip; color: var(--text); font: 16px/1.65 var(--body); background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 90, 50, .14), transparent 70%), var(--bg); }
a { color: var(--accent); }
a:hover { color: #ffb08f; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(8, 9, 13, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--head); text-decoration: none; font: 800 22px var(--display); text-transform: uppercase; }
.logo i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #ff6a4d; }
.logo em { font-style: normal; color: #ff6a4d; }
.logo:hover { color: var(--head); }
.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav a { padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { color: var(--head); background: rgba(255, 255, 255, .06); }

.btn { display: inline-block; padding: 14px 26px; border-radius: 14px; background: var(--warm); color: #fff; text-decoration: none; font: 700 18px var(--display); letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 18px 40px -16px rgba(255, 80, 70, .75); }
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.small { flex: none; padding: 8px 16px; font-size: 15px; border-radius: 10px; box-shadow: none; }

.crumbs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--wide); margin: 0 auto; padding: 18px 24px 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 8px; }
.crumbs a { color: var(--muted); }

main { max-width: var(--wide); margin: 0 auto; padding: 0 24px 40px; }
section { padding: 48px 0; border-top: 1px solid var(--edge); }
.hero { padding: 36px 0 44px; border-top: 0; }
.kicker { margin: 0 0 12px; font: 600 13px var(--body); letter-spacing: .04em; color: #ffb38a; }
h1 { margin: 0 0 16px; font: 800 clamp(44px, 7vw, 88px)/.92 var(--display); text-transform: uppercase; color: var(--head); text-wrap: balance; }
h2 { margin: 0 0 16px; font: 800 clamp(28px, 3.4vw, 40px)/1.02 var(--display); text-transform: uppercase; color: var(--head); text-wrap: balance; }
h3 { margin: 0 0 6px; font: 700 19px var(--display); letter-spacing: .03em; color: var(--head); }
p { margin: 0 0 14px; max-width: 72ch; }
b { color: var(--head); font-weight: 600; }
.lead { max-width: 60ch; font-size: clamp(17px, 1.5vw, 19px); color: #ddd5ca; margin-bottom: 26px; }

/* Game page hero: a screenshot of the map the trainer uses for that game, full width behind the title */
.hero.art { position: relative; isolation: isolate; margin: -42px calc(50% - 50vw) 0; padding: clamp(84px, 11vw, 150px) max(24px, calc(50vw - var(--wide) / 2 + 24px)) 40px; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero.art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 9, 13, .94) 0%, rgba(8, 9, 13, .82) 38%, rgba(8, 9, 13, .3) 72%, rgba(8, 9, 13, .45) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 13, 0) 38%), linear-gradient(180deg, rgba(8, 9, 13, .7) 0%, rgba(8, 9, 13, 0) 22%); }
.hero.art .lead { color: #e8e1d6; }
.hero.art + section { border-top: 0; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; min-width: 120px; padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--edge); }
.hero.art .facts { gap: 0; width: fit-content; max-width: 100%; margin-top: 44px; border-radius: 14px; background: rgba(8, 9, 13, .62); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.hero.art .facts li { min-width: 0; padding: 12px 22px; border: 0; border-radius: 0; background: none; }
.hero.art .facts li + li { border-left: 1px solid rgba(255, 255, 255, .1); }
.facts b { font: 700 20px var(--display); }
.facts span { font-size: 13px; color: var(--muted); }

/* Wide screens: section heading in a sticky left column, content on the right */
@media (min-width: 960px) {
  main > section:not(.hero, .tool, .cta) { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); column-gap: 64px; }
  main > section:not(.hero, .tool, .cta) > * { grid-column: 2; }
  main > section:not(.hero, .tool, .cta) > h2:first-child { grid-column: 1; grid-row: 1 / span 40; align-self: start; position: sticky; top: 88px; }
  /* Wide comparison tables need the full width */
  main > section:has(table.wide) { display: block; }
}

/* Spec panels ("how it plays") */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.cards li { padding: 18px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--edge); }
.cards p, .drills p { margin: 0; font-size: 15px; }

/* Drill and tip lists: open grid with hairlines instead of boxes */
.drills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; margin: 18px 0 0; padding: 0; list-style: none; }
.drills li { padding: 16px 0 18px; border-top: 1px solid var(--edge); }
.drills h3 { color: var(--head); }

/* Routine: a timeline. Each bar starts where the previous drill ends (--s) and is as long as the drill (--w) */
.routine { max-width: 640px; margin: 18px 0 8px; padding: 0; list-style: none; counter-reset: r; }
.routine li { counter-increment: r; position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0 22px; }
.routine li::before { content: counter(r); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 138, 92, .14); color: var(--accent); font: 700 15px var(--display); }
.routine span { flex: 1; color: var(--head); }
.routine b { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.routine i { position: absolute; left: 44px; right: 0; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); }
.routine i::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(var(--s) * 100%); width: calc(var(--w) * 100%); border-radius: 2px; background: var(--warm); }

.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 14px; border: 1px solid var(--edge); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 14px 16px 6px; font-size: 13px; color: var(--muted); }
th, td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--edge); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
tbody th { color: var(--head); font-weight: 600; }
tr.on, tr.on:hover { background: rgba(255, 138, 92, .1); }

.faq details { max-width: 75ch; border-bottom: 1px solid var(--edge); }
.faq details:first-of-type { border-top: 1px solid var(--edge); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font-weight: 600; color: var(--head); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 138, 92, .12); color: var(--accent); font: 700 18px/1 var(--body); }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: #fff; }
.faq details p { margin: 0 0 18px; }

.cta { text-align: center; }
.cta p { margin-left: auto; margin-right: auto; }
.cta h3 { margin-top: 36px; }
.cta.art { position: relative; isolation: isolate; margin: 24px calc(50% - 50vw) 0; padding: clamp(64px, 9vw, 110px) 24px; border-top: 0; }
.cta.art::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 9, 13, .72) 30%, rgba(8, 9, 13, .78) 70%, var(--bg) 100%); }
.cta.art .hero-img { object-position: 50% 60%; }
.cta.art h2 { font-size: clamp(36px, 5vw, 56px); }
.cta.art p { color: #e8e1d6; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 10px 0 0; padding: 0; list-style: none; }
.links.left { justify-content: flex-start; }
.cta.art .links { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta.art .links a { color: #ffc2a6; }
code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--head); font-size: .9em; }
.tool h2 { margin-top: 8px; }
.tool .btn { margin-top: 16px; border: 0; cursor: pointer; }
.tool .conv + h2, .tool .result + h2 { margin-top: 32px; }
.pick { padding: 22px 0; border-bottom: 1px solid var(--edge); }
.pick:first-of-type { padding-top: 0; }
.pick h3 { font-size: 26px; }
.pick h3 a { color: var(--head); }
.pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; }
.pc ul { margin: 6px 0 0; padding-left: 18px; }
.pc li { margin-bottom: 4px; font-size: 15px; }

.tool { padding-top: 0; border-top: 0; }
.conv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; padding: 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid var(--edge); }
.conv label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.conv input, .conv select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: #11131a; color: var(--head); font: 600 17px var(--body); }
.conv input:focus, .conv select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.result { display: flex; flex-direction: column; gap: 2px; margin: 18px 0 0; padding: 22px; border-radius: 18px; background: rgba(255, 138, 92, .08); border: 1px solid rgba(255, 138, 92, .35); }
.result span { color: var(--muted); }
.result b { font: 800 clamp(30px, 4.4vw, 48px)/1.05 var(--display); }
.result small { color: var(--muted); }
.formula { display: inline-block; padding: 12px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--edge); color: var(--head); font-family: ui-monospace, monospace; font-size: 15px; }
.note { font-size: 14px; color: var(--muted); }
.prose p, .prose ul { max-width: 68ch; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }

.foot { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 32px; max-width: var(--wide); margin: 0 auto; padding: 44px 24px 48px; border-top: 1px solid var(--edge); font-size: 14px; color: var(--muted); }
.foot-brand p { max-width: 34ch; margin-top: 12px; font-size: 13px; }
.foot nav { display: flex; flex-direction: column; gap: 7px; }
.foot-h { margin: 0 0 4px; font-weight: 600; color: var(--head); }
.foot a { color: var(--text); text-decoration: none; }
.foot nav a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .top { gap: 12px; flex-wrap: wrap; }
  .top nav { order: 3; flex-basis: 100%; margin: 0 -6px; }
  .top .btn.small { margin-left: auto; }
  main, .crumbs, .foot { padding-left: 16px; padding-right: 16px; }
  section { padding: 36px 0; }
  .hero.art { padding: 72px 16px 32px; }
  .hero.art::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 13, .82) 45%, rgba(8, 9, 13, .7) 100%); }
  .hero.art .facts li { padding: 10px 14px; }
  .cta.art { padding: 56px 16px; }
}
