/* Content pages (guides, articles, leaderboard, player profiles): the same
   wood, bronze and gold as the homepage, set for long reading. */
html { scroll-behavior: smooth; }
body { font-size: 16px; line-height: 1.7; }
.pwrap { max-width: 1040px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

/* nav: the homepage's crimson bar */
.pnav { position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(255,220,180,.08), transparent 40%), linear-gradient(180deg, #7e1810, #4a0b06);
  box-shadow: 0 2px 0 #c99335, 0 3px 0 #1a120a, 0 10px 24px rgba(0,0,0,.55); }
.pnav .pwrap { display: flex; align-items: center; gap: 16px; min-height: 62px; flex-wrap: wrap; }
.plogo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.plogo img { width: 44px; height: 44px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.7)); }
.plogo .brand-title { font-size: 23px; white-space: nowrap; }
.plinks { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.plinks a { color: #f0d9b0; text-decoration: none; font: 700 15px var(--display); padding: 8px 11px; border-radius: 3px; }
.plinks a:hover { color: #fff; background: rgba(0,0,0,.2); }
.pcta, .pbtn { display: inline-block; text-decoration: none; font: 700 15px var(--display); letter-spacing: .04em; color: #24170a; padding: 9px 20px; border-radius: 3px;
  background: linear-gradient(180deg, #f6dc98, #d4a04a 45%, #8a5c1c); border: 1px solid #f6dc98; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 10px rgba(0,0,0,.5); white-space: nowrap; }
.pcta:hover, .pbtn:hover { background: linear-gradient(180deg, #fff0bf, #e2b25a 45%, #9b6a22); }
.pbtn.alt { background: linear-gradient(180deg, #c93a26, #9b1d13 55%, #66100a); color: var(--cream); border-color: #d9a441; }
@media (max-width: 720px) { .plinks { order: 3; flex-basis: 100%; } }

.pmain { padding-block: 22px 56px; display: grid; gap: 34px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold-lo); }
.crumbs a { color: var(--gold); text-decoration: none; }

/* the article: parchment-dark panel with bronze rim */
.pbody { padding: 30px clamp(18px, 4vw, 44px) 34px; border: 1px solid #a9792c; border-radius: 3px; min-width: 0;
  background: linear-gradient(180deg, rgba(227,182,90,.06), transparent 160px), linear-gradient(165deg, rgba(40,30,21,.95), rgba(22,16,10,.96));
  box-shadow: inset 0 0 0 3px rgba(12,8,4,.9), inset 0 0 0 4px rgba(247,220,142,.25), 0 10px 26px rgba(0,0,0,.55); }
.pbody > * + * { margin-top: 16px; }
.pbody h1 { font: 900 clamp(28px, 4.6vw, 40px)/1.2 var(--display); color: var(--gold-hi); text-wrap: balance; margin: 0;
  text-shadow: 0 2px 0 #000; }
.pbody h2 { font: 900 24px/1.3 var(--display); color: var(--gold-hi); margin-top: 34px; text-wrap: balance; padding-bottom: 8px; border-bottom: 1px solid rgba(217,164,65,.35); }
.pbody h3 { font: 700 19px/1.35 var(--display); color: var(--gold); margin-top: 24px; }
.pbody p, .pbody li { max-width: 72ch; color: var(--fg); }
.pbody a { color: var(--gold-hi); }
.pbody ul, .pbody ol { padding-left: 24px; display: grid; gap: 6px; }
.pbody li::marker { color: var(--gold); }
.pbody strong, .pbody b { color: #fff3d6; }
.pmeta { color: var(--muted); font-size: 14px; margin-top: 8px !important; }
.lead { font-size: 18px; color: #f6e7c8; }
.note { padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(227,182,90,.08); border-radius: 0 3px 3px 0; }
.note.warn { border-left-color: var(--crimson); background: rgba(179,36,26,.12); }
code { font-size: 14px; background: rgba(0,0,0,.4); padding: 1px 6px; border-radius: 3px; color: var(--gold-hi); }
kbd { font: 600 13px var(--body); padding: 1px 7px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 3px; background: rgba(0,0,0,.35); }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; gap: 14px !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 48px; }
.steps > li::before { content: counter(s, upper-roman); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center;
  font: 900 15px var(--display); color: #24170a; border-radius: 50%; background: radial-gradient(circle at 45% 35%, #fff0bf, #d4a04a 50%, #7d5418); }

/* tables (comparison, leaderboard, download facts) */
.tbl { overflow-x: auto; border: 1px solid var(--line2); border-radius: 3px; }
.tbl table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.tbl th { text-align: left; font: 700 14px var(--display); color: var(--gold); padding: 9px 12px; background: rgba(0,0,0,.35); border-bottom: 1px solid var(--line2); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid rgba(77,58,34,.6); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.top td { background: rgba(227,182,90,.07); }
.yes { color: var(--ok); font-weight: 600; } .no { color: var(--err); font-weight: 600; } .mid { color: var(--warn); font-weight: 600; }

/* download page */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dl-card { padding: 18px 20px; border: 1px solid var(--line2); border-radius: 3px; background: rgba(0,0,0,.25); display: grid; gap: 10px; align-content: start; }
.dl-card h2 { margin: 0 !important; border: 0 !important; padding: 0 !important; font-size: 21px !important; }
.dl-card .facts { font-size: 14px; color: var(--muted); }
.dl-card .sha { font-size: 12px; word-break: break-all; }

/* article list */
.alist { list-style: none; padding: 0 !important; display: grid; gap: 12px !important; }
.alist li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: rgba(0,0,0,.2); display: grid; gap: 4px; }
.alist a { font: 700 19px var(--display); text-decoration: none; }
.alist span { color: var(--muted); font-size: 15px; }

/* player profile */
.pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.pstats div { text-align: center; padding: 12px; border: 1px solid var(--line2); border-radius: 3px; background: rgba(0,0,0,.25); }
.pstats b { display: block; font: 900 26px var(--display); color: var(--gold-hi); font-variant-numeric: lining-nums; }
.pstats span { font-size: 13px; color: var(--muted); }

/* call to action under every page */
.pcta-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 18px 22px; border: 1px solid #a9792c; border-radius: 3px;
  background: radial-gradient(ellipse at 0% 50%, rgba(179,36,26,.35), transparent 60%), linear-gradient(165deg, rgba(40,30,21,.95), rgba(22,16,10,.96)); }
.pcta-box img { width: 72px; height: 72px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.8)); }
.pcta-box div { flex: 1; min-width: 200px; }
.pcta-box b { font: 900 21px var(--display); color: var(--gold-hi); }
.pcta-box p { margin: 4px 0 0; color: var(--muted); }

.prelated h2 { font: 900 22px var(--display); color: var(--gold-hi); margin: 0 0 12px; }
.prelated ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.prelated li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: rgba(0,0,0,.25); display: grid; gap: 4px; }
.prelated a { font: 700 17px var(--display); color: var(--gold-hi); text-decoration: none; }
.prelated a:hover { text-decoration: underline; }
.prelated span { color: var(--muted); font-size: 14px; }

.pfoot { border-top: 2px solid #c99335; background: #0d0905; padding-block: 22px 30px; color: var(--muted); font-size: 14px; }
.pfoot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.pfoot-links a { color: var(--gold); text-decoration: none; font-weight: 600; }
.pfoot p { margin: 0; }
a:focus-visible, .pbtn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
