/* Search pages (/steam-replay, /types, /types/<type>). Tokens and the hand-over card come from gus.css. */
.pg main { padding-bottom: 8px; }
.pg .sky { color: var(--sky); }
.pg-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 56px; width: min(1200px, 100%); margin: 0 auto; padding: 24px 24px 0; }
.pg-intro { flex: 1 1 460px; min-width: 0; max-width: 620px; padding-bottom: 12px; }
.pg-kick { margin: 0 0 14px; font-size: 14px; font-weight: 800; color: var(--sky); }
.pg-intro h1 { margin: 0; font-size: clamp(28px, 4.4vw, 42px); font-weight: 850; line-height: 1.27; letter-spacing: -.04em; text-wrap: balance; }
.pg-lead { margin: 20px 0 0; font-size: 17px; line-height: 1.75; color: var(--soft); }
.pg-hero .pg-card { flex: 1 1 420px; max-width: 520px; margin: 0; }
.pg-card .gus-pose { width: 210px; margin-bottom: -63px; }
.pg .card > .btn-steam:first-child { margin-top: 0; }

.pg-sec { width: min(1200px, 100%); margin: 0 auto; padding: 104px 24px 0; }
.pg-sec h2 { margin: 0; font-size: 28px; font-weight: 850; letter-spacing: -.035em; line-height: 1.3; }
.pg-narrow { width: min(808px, 100%); }
.pg-left { margin-left: max(0px, calc((100% - 1200px) / 2)); }
.pg .faq { max-width: none; margin: 24px 0 0; }

/* Steam Replay: one year against every year since joining */
.pg-years { display: grid; gap: 16px; margin: 28px 0 0; padding: 24px 24px 20px; background: var(--deep); border: 3px solid var(--line); border-radius: 20px; }
.pg-years p { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--sub); }
.pg-years p.sky { color: var(--sky); }
.pg-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.pg-row i { display: block; height: 28px; border-radius: 5px; background: var(--card); }
.pg-row i.on { background: var(--soft); }
.pg-row.all i.on { background: var(--sky); }
.pg-years figcaption { font-size: 12.5px; font-weight: 700; color: #8ea3b6; text-align: right; font-variant-numeric: tabular-nums; }
.pg-table { margin-top: 20px; overflow: hidden; border: 3px solid var(--line); border-radius: 20px; background: var(--card); }
.pg-table table { width: 100%; border-collapse: collapse; }
.pg-table th, .pg-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-top: 2px solid var(--line); }
.pg-table thead th { border-top: 0; font-size: 14px; font-weight: 800; color: var(--sub); }
.pg-table thead th.sky { color: var(--sky); }
.pg-table tbody th { width: 160px; font-size: 14px; font-weight: 800; color: var(--sub); }
.pg-table td { font-size: 16px; line-height: 1.6; }
.pg-table td.us { background: var(--bg); font-weight: 700; }

.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pg-chips a { display: inline-block; padding: 9px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font-size: 14px; font-weight: 750; text-decoration: none; }
.pg-chips a:hover { background: #26405a; }

/* /types */
.pg-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.pg-rules .card { padding: 22px 22px 24px; border-radius: 18px; box-shadow: 0 5px 0 0 var(--line); }
.pg-rules p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: var(--soft); }
.pg-rules .pg-pair { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; font-weight: 850; letter-spacing: -.03em; color: var(--text); }
.pg-pair span { font-size: 14px; color: var(--mute); }
.pg-matrix { display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.mx-h { margin: 0; align-self: end; padding: 0 4px 2px; font-size: 13px; font-weight: 800; color: var(--sub); }
.mx-row { align-self: center; font-size: 14px; }
.pg-tc { display: flex; flex-direction: column; gap: 10px; min-height: 128px; padding: 16px; border: 3px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 5px 0 0 var(--line); color: var(--text); text-decoration: none; }
.pg-tc:hover { background: #26405a; }
.pg-tc b { font-size: 16.5px; font-weight: 850; line-height: 1.35; letter-spacing: -.02em; }
.pg-tc > span:last-child:not(.sky) { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.pg-tc i { display: inline-block; padding: 2px 8px; border-radius: 7px; background: var(--input); border: 1.5px solid var(--line); font-size: 12px; font-style: normal; font-weight: 750; color: var(--soft); }
.pg-tc .sky { font-size: 13px; font-weight: 800; }

/* /types/<type> */
.pg-crumb { font-size: 14px; font-weight: 750; color: var(--sub); }
.pg-crumb span[aria-hidden] { margin: 0 8px; color: var(--mute); }
.pg-crumb + h1 { margin-top: 14px; }
.pg-code-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pg-code-chips li { padding: 4px 11px; border-radius: 9px; background: var(--input); border: 2px solid var(--line); font-size: 14px; font-weight: 800; color: var(--sky); }
.pg-gus-sec { padding-top: 56px; }
.pg-gus { display: flex; align-items: flex-start; gap: 16px; max-width: 760px; margin: 0; padding: 20px 24px; background: var(--paper); color: var(--ink); border: 3px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 0 var(--line); }
.pg-gus img { flex: none; display: block; width: 52px; height: 52px; border-radius: 13px; border: 2px solid var(--line); background: #fff; object-fit: cover; }
.pg-gus figcaption { font-size: 13px; font-weight: 800; color: var(--label); }
.pg-gus blockquote { margin: 4px 0 0; font-size: 20px; font-weight: 850; line-height: 1.45; letter-spacing: -.025em; }
.pg-sides { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.pg-sides .card { padding: 18px 22px 20px; border-radius: 16px; box-shadow: 0 4px 0 0 var(--line); }
.pg-sides p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--soft); }
.pg-side { display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; align-items: center; gap: 12px; font-size: 15px; font-weight: 800; color: var(--mute); }
.pg-side span:last-child { text-align: right; }
.pg-side .on { color: var(--sky); }
.pg-half { position: relative; display: block; height: 12px; border-radius: 6px; background: var(--input); border: 2px solid var(--line); }
.pg-half i { position: absolute; top: -2px; bottom: -2px; left: -2px; width: 50%; border-radius: 6px; background: var(--sky); border: 2px solid var(--line); }
.pg-half.right i { left: auto; right: -2px; }
.pg-near { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.pg-near .pg-tc { min-height: 0; gap: 6px; }
.pg-all { margin: 28px 0 0; font-size: 15px; font-weight: 800; }

@media (max-width: 720px) {
  .pg-hero { padding: 16px 16px 0; }
  .pg-lead { font-size: 16px; }
  .pg-card .gus-pose { width: 170px; margin-bottom: -51px; }
  .pg-sec { padding: 72px 16px 0; }
  .pg-sec h2 { font-size: 22px; }
  .pg-gus-sec { padding-top: 40px; }
  .pg-years { padding: 18px 16px 14px; }
  .pg-row i { height: 20px; }
  .pg-table thead { display: none; }
  .pg-table tr { display: grid; border-top: 2px solid var(--line); }
  .pg-table tbody tr:first-child { border-top: 0; }
  .pg-table tbody th, .pg-table td { width: auto; border-top: 0; padding: 10px 16px; }
  .pg-table tbody th { padding-top: 16px; }
  .pg-table td::before { content: attr(data-col); display: block; font-size: 12px; font-weight: 800; color: var(--sub); }
  .pg-side { grid-template-columns: 64px minmax(0, 1fr) 64px; }
  .pg-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-matrix .mx-col { display: none; }
  .pg-matrix .mx-row { grid-column: 1 / -1; padding-top: 14px; }
  .pg-tc { min-height: 112px; padding: 12px; }
  .pg-tc b { font-size: 15px; }
  .pg-gus { padding: 16px 18px; }
  .pg-gus blockquote { font-size: 17px; }
}

/* The intake card's PlayStation pane on pages whose own result is Steam only: where the ID goes instead. */
.psn-goes { margin: 10px 0 0; font-size: 13.5px; font-weight: 750; line-height: 1.55; color: var(--sky); }

/* Phones: the card right under the heading (or the type's chips), the long lead under the card. */
@media (max-width: 720px) {
  .pg-hero { flex-direction: column; align-items: stretch; gap: 0; }
  .pg-hero .pg-intro { display: contents; }
  .pg-hero .pg-intro > * { order: 1; }
  .pg-hero .pg-card { order: 2; flex: none; max-width: none; margin-top: 4px; }
  .pg-hero .pg-intro > .pg-lead, .pg-hero .pg-intro > .ch-meta { order: 3; }
  .pg-hero .pg-intro > .pg-lead { margin-top: 28px; }
}

/* the landing's board of running totals */
.pg-board { margin-top: 88px; }
.pg-board .stat b { font-size: 32px; font-weight: 850; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .pg-board { margin-top: 64px; } }

/* the landing's wall and reading preview inside a search page section */
.pg-sec .wall { margin-top: 8px; }
.pg-sec .pv-wrap { margin-top: 24px; }
.pv-body + .pv-body { margin-top: 16px; }
.wcard-type { display: inline-block; margin: 16px 0 0; padding: 1px 9px; border: 2px solid var(--line); border-radius: 8px; background: var(--input); color: var(--sky); font-size: 12.5px; font-weight: 800; }
.wcard-type + .wcard-kick { margin-top: 8px; }

/* who among the friends was read as a type: their top game and masked nickname */
.tc-who { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tc-who > span { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: 8px; background: #16405c; color: #bfe6ff; font-size: 12px; font-weight: 800; }
.tc-who img { display: block; width: 38px; height: 18px; object-fit: cover; border-radius: 5px; }
.pg-tc .tc-who + span { margin-top: 0 !important; }
.pg-near .pg-tc .tc-who { display: flex; margin-top: 4px; }

/* /types/<type>: one friend's reading of that type */
.ty-ex { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.ty-card { margin: 0; padding: 0; list-style: none; }
.ty-card .tcard { width: auto; }
.ty-card .tcard > a { transform: none; }
.ty-vals { padding: 24px 28px 26px; border-radius: 18px; }
.ty-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 13px; font-weight: 800; color: var(--sub); }
.ty-head span { display: inline-flex; align-items: center; gap: 6px; color: #8ea3b6; }
.ty-head span i { display: inline-block; width: 2px; height: 14px; background: #8ea3b6; }
.ty-rows { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.ty-val { display: grid; grid-template-columns: 112px minmax(0, 1fr) 64px; align-items: center; gap: 14px; font-size: 14px; font-weight: 750; color: var(--sub); }
.ty-val b { text-align: right; font-size: 16px; font-weight: 850; color: var(--text); font-variant-numeric: tabular-nums; }
.ty-bar { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--input); border: 2px solid var(--line); }
.ty-bar u { position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; background: #8ea3b6; }
.ty-bar i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--sky); border: 3px solid var(--line); }
.ty-scenes { display: grid; gap: 12px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid #2c4560; list-style: none; }
.ty-scenes li { display: flex; align-items: center; gap: 14px; }
.ty-scenes img { flex: none; width: 96px; aspect-ratio: 460 / 215; object-fit: cover; border-radius: 7px; background: var(--deep); }
.ty-scenes img.ty-face { width: 45px; aspect-ratio: 1; margin: 0 25.5px; border-radius: 11px; background: #fff; }
.ty-scenes p { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.42; letter-spacing: -.02em; }
.ty-scenes small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--sub); }

/* the closing card */
.pg-again .again-wrap { margin-top: 0; }
.pg-again-title { margin: 0 0 2px; font-size: clamp(23px, 4.6vw, 29px); font-weight: 850; line-height: 1.36; letter-spacing: -.035em; }

@media (max-width: 720px) {
  .ty-ex { grid-template-columns: minmax(0, 1fr); }
  .ty-vals { padding: 20px 18px; }
  .ty-val { grid-template-columns: 84px minmax(0, 1fr) 52px; gap: 10px; font-size: 13px; }
  .ty-scenes img { width: 80px; }
  .ty-scenes img.ty-face { margin: 0 17.5px; }
  .ty-scenes p { font-size: 15px; }
}
