/* /steam-charts and /steam-recommend. Frame, card and tokens come from gus.css and pages.css. */
.ch-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; font-size: 14.5px; font-weight: 700; color: var(--sub); }

/* the "matched" line under the hero */
.ch-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; width: min(1152px, calc(100% - 48px)); margin: 32px auto 0; padding: 16px 20px; border: 3px solid var(--line); border-radius: 18px; background: var(--tint); font-size: 16px; font-weight: 800; }
.ch-result .btn { min-height: 44px; padding: 0 16px; }

/* chart */
.ch-sec { padding-top: 48px; }
.ch-head, .ch-row { display: grid; grid-template-columns: 56px 128px minmax(0, 1fr) 300px; align-items: center; column-gap: 20px; }
.ch-head { grid-template-columns: 56px minmax(0, 1fr) 300px; padding: 0 23px 10px; font-size: 13px; font-weight: 800; color: var(--sub); }
.ch-head > span:first-child { text-align: center; }
.ch-list { margin: 0; padding: 0; list-style: none; background: var(--card); border: 3px solid var(--line); border-radius: 20px; overflow: hidden; }
.ch-row { padding: 14px 20px; border-top: 2px solid var(--line); }
.ch-row:first-child { border-top: 0; }
.ch-n { font-size: 22px; font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; }
.ch-cov { display: block; width: 128px; height: auto; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 6px; background: var(--deep); }
.ch-game { min-width: 0; }
.ch-name { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.ch-tag { padding: 2px 8px; border-radius: 7px; background: var(--input); color: var(--sub); font-size: 12.5px; font-weight: 700; }
.ch-stats { display: grid; grid-template-columns: 72px minmax(0, 1fr) 92px; align-items: center; column-gap: 12px; font-variant-numeric: tabular-nums; }
.ch-stats > span:nth-child(n + 2) { text-align: right; }
.ch-peak { font-size: 16px; font-weight: 750; }
.ch-up, .ch-down { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; }
.ch-up { color: var(--sky); }
.ch-down { color: #f0a35e; }
.ch-same, .ch-new { font-size: 13px; font-weight: 750; color: #8ea3b6; }
.ch-ml { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the "me" column shows only after a lookup */
.ch-mine { visibility: hidden; }
.matched .ch-mine { visibility: visible; }
.ch-mine-v { font-size: 14px; font-weight: 750; color: var(--mute); }
.ch-mine-v.has, .ch-mine-v.zero { display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 13px; font-weight: 800; }
.ch-mine-v.has { background: #16405c; color: #bfe6ff; }
.ch-mine-v.zero { background: #3a2a1a; color: #f0a35e; }
.ch-missing { margin: 0; padding: 24px; border: 3px solid var(--line); border-radius: 20px; background: var(--card); font-weight: 750; color: var(--soft); }

/* picks */
.rc-sec { padding-top: 56px; }
.rc-sec.rc-example { padding-top: 96px; }
.rc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.rc-head h2 { margin: 0; }
.rc-head p { margin: 0; font-size: 14px; font-weight: 750; color: var(--sub); }
.rc-note { margin: 16px 0 0; color: var(--soft); }
.rc-genres-fig { display: grid; gap: 10px; margin: 24px 0 0; padding: 22px 24px; background: var(--deep); border: 3px solid var(--line); border-radius: 20px; }
.rc-genres-fig figcaption { margin-bottom: 4px; font-size: 14px; font-weight: 800; color: var(--sub); }
.rc-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px; align-items: center; gap: 14px; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.rc-bar > span:last-child { text-align: right; color: var(--soft); }
.rc-track { display: block; height: 14px; border-radius: 7px; background: var(--card); border: 2px solid var(--line); overflow: hidden; }
.rc-track i { display: block; height: 100%; background: var(--sky); }
.rc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.rc-card { padding: 14px 14px 18px; border-radius: 18px; }
.rc-cov { position: relative; }
.rc-cov img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 10px; background: var(--deep); }
.rc-n { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border: 2px solid var(--line); border-radius: 10px; background: var(--sky); color: var(--on-sky); font-size: 16px; font-weight: 850; }
.rc-name { margin: 14px 2px 0; font-size: 18px; font-weight: 850; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.rc-year { margin: 2px 2px 0; font-size: 13px; font-weight: 700; color: var(--sub); }
.rc-genres { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 2px 0; }
.rc-chip { display: inline-flex; gap: 6px; padding: 3px 9px; border-radius: 8px; background: var(--input); color: var(--soft); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-chip b { color: var(--sky); font-weight: 800; }
.rc-unknown { margin-top: 24px; padding: 16px 20px; border: 2px solid var(--line); border-radius: 16px; background: var(--card); }
.rc-unknown summary { font-size: 15px; font-weight: 800; cursor: pointer; }
.rc-unknown ul { display: grid; gap: 6px; margin: 12px 0 0; padding-left: 18px; color: var(--soft); }
.rc-unknown p { margin: 10px 0 0; font-size: 13.5px; color: var(--sub); }
.rc-read { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding: 20px 24px; }
.rc-read img { display: block; width: 96px; height: auto; margin: -36px 0 -12px; }

@media (max-width: 720px) {
  .ch-result { width: calc(100% - 32px); margin-top: 24px; }
  .ch-sec, .rc-sec { padding-top: 40px; }
  .ch-head { display: none; }
  .ch-row { grid-template-columns: 30px 96px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding: 14px 12px; }
  .ch-n { font-size: 18px; }
  .ch-cov { width: 96px; }
  .ch-stats { grid-column: 2 / 4; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 14px; }
  .ch-stats > span:nth-child(n + 2) { text-align: left; }
  .ch-ml { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: #8ea3b6; }
  .ch-peak { font-size: 14px; }
  .ch-list:not(.matched) .ch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-list:not(.matched) .ch-mine { display: none; }
  .rc-bar { grid-template-columns: 96px minmax(0, 1fr) 76px; gap: 10px; font-size: 14px; }
  .rc-list { grid-template-columns: minmax(0, 1fr); }
}

/* chart rows a friend's reading talked about */
.ch-read { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 9px 0 0; padding: 3px 10px 3px 3px; border: 1.5px solid #355574; border-radius: 9px; background: var(--tint); font-size: 13px; font-weight: 750; line-height: 1.35; color: #cfe8fa; }
.ch-read img { flex: none; display: block; width: 22px; height: 22px; border-radius: 6px; background: #fff; object-fit: cover; }
.ch-read b { flex: none; color: var(--sky); font-weight: 850; }
.ch-read span { min-width: 0; }

/* /steam-recommend: friends' unplayed-game scenes and the averages for unopened games */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 28px; }
.card.sc { display: flex; flex-direction: column; margin: 0; padding: 14px 14px 16px; border-radius: 18px; box-shadow: 0 6px 0 0 var(--line); }
.sc-covs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sc-covs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-cov { position: relative; margin: 0; }
.sc-cov img { display: block; width: 100%; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 8px; background: var(--deep); }
.sc-cov.zero img { filter: grayscale(1) brightness(.62); }
.sc-cov figcaption { position: absolute; left: 6px; bottom: 6px; padding: 0 7px; border: 2px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 850; line-height: 1.5; }
.sc .wcard-kick { margin-top: 16px; }
.sc-title { margin: 6px 0 0; font-size: 19px; font-weight: 850; line-height: 1.4; letter-spacing: -.03em; }
.sc-num { margin-top: auto; padding-top: 16px; }
.sc-num > div { padding: 12px 14px; background: var(--bg); border: 1px solid #2c4560; border-radius: 14px; }
.sc-num p { margin: 0; display: flex; align-items: baseline; gap: 3px; }
.sc-num b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.sc-num span { font-size: 14px; font-weight: 700; color: var(--sky); }
.sc-num small { display: block; margin-top: 3px; font-size: 13px; color: var(--sub); }
.avg-grid.pg-avg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px !important; }
@media (max-width: 720px) {
  .avg-grid.pg-avg2 { grid-template-columns: minmax(0, 1fr); }
}
