/* ============================================================
   game-extras — the v4 additions to the game page:
   recent reviews, Steam news, languages / Deck / requirements
   in the fact panel, and the review-score chart.

   Paper arcade rules apply: 1px --line borders, hard 4px ink
   shadow on hover, no gradients, no radii, yellow is the only
   interface accent.
   ============================================================ */

/* ---------- what players say ---------- */

.gx-reviews{display:grid;gap:12px;margin-top:20px}

.gx-review{
  border:1px solid var(--line);
  background:var(--paper-2);
  padding:16px 18px;
  display:grid;
  gap:10px;
}
.gx-review--down{border-left:3px solid var(--red)}
.gx-review--up{border-left:3px solid var(--green)}

.gx-review__head{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;
  font-size:13px;color:var(--muted);
}
.gx-review__verdict{
  display:inline-flex;align-items:center;gap:7px;
  font-weight:600;font-size:12px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ink);
}
.gx-review__verdict svg{width:14px;height:14px;flex:none;fill:currentColor}
.gx-review--up .gx-review__verdict svg{color:var(--green)}
.gx-review--down .gx-review__verdict svg{color:var(--red)}
.gx-review__sep{color:var(--line-strong)}
.gx-review__text{
  margin:0;font-size:1rem;line-height:1.55;color:var(--ink-soft);
}
.gx-review__text::before{content:"\201C"}
.gx-review__text::after{content:"\201D"}

.gx-more{margin-top:16px}

/* ---------- steam news ---------- */

.gx-news{
  display:grid;gap:0;margin-top:20px;
  border-top:1px solid var(--line);
  list-style:none;padding:0;
}

.gx-news__item{
  border-bottom:1px solid var(--line);
  padding:16px 0;
  display:grid;gap:8px;
}
.gx-news__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px}
.gx-news__title{
  font-family:var(--display);font-weight:700;letter-spacing:-.02em;
  font-size:1.12rem;line-height:1.25;margin:0;
}
.gx-news__title a{color:var(--ink);text-decoration:none}
.gx-news__title a:hover{background:var(--yellow);color:#141414;box-shadow:2px 0 0 var(--yellow),-2px 0 0 var(--yellow)}
.gx-news__meta{font-size:13px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gx-news__body{margin:0;font-size:.98rem;line-height:1.55;color:var(--ink-soft)}
.gx-news__go{font-size:12px;letter-spacing:.04em;text-transform:uppercase;font-weight:600}

/* ---------- fact panel: languages, deck, requirements ---------- */

.gx-langs{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.gx-lang{
  display:inline-flex;align-items:center;gap:6px;
  border:1px solid var(--line-strong);background:var(--paper-2);
  padding:2px 8px;font-size:12.5px;color:var(--ink-soft);
  white-space:nowrap;
}
.gx-lang--audio{border-color:var(--ink)}
.gx-lang__audio{
  font-size:9px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);border-left:1px solid var(--line-strong);padding-left:6px;
}
.gx-langs__note{margin-top:8px}

.gx-deck{
  display:flex;align-items:center;gap:10px;margin-top:10px;
  border:1px solid var(--line-strong);background:var(--paper-2);padding:8px 10px;
}
.gx-deck__mark{
  width:22px;height:16px;flex:none;border:1px solid var(--ink);
  display:grid;place-items:center;font-size:9px;font-weight:700;
  background:var(--paper-3);
}
.gx-deck--verified .gx-deck__mark{background:var(--green)}
.gx-deck--playable .gx-deck__mark{background:var(--yellow)}
.gx-deck--unsupported .gx-deck__mark{background:var(--line)}
.gx-deck__text{display:grid;gap:1px;min-width:0}
.gx-deck__label{font-size:14px;color:var(--ink);font-weight:600;line-height:1.2}

.gx-sysreq{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.gx-sysreq > summary{
  cursor:pointer;list-style:none;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  font-size:14px;font-weight:600;color:var(--ink);
}
.gx-sysreq > summary::-webkit-details-marker{display:none}
.gx-sysreq > summary::after{content:"+";font-family:var(--body);font-size:17px;color:var(--muted);line-height:1}
.gx-sysreq[open] > summary::after{content:"\2212"}
.gx-sysreq > summary:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
.gx-sysreq__body{margin-top:12px;font-size:13.5px;line-height:1.55;color:var(--ink-soft)}
.gx-sysreq__body h4{
  font-family:var(--pixel);font-size:10px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);margin:0 0 6px;font-weight:400;
}
.gx-sysreq__block + .gx-sysreq__block{margin-top:14px}
.gx-sysreq__body ul{margin:0;padding-left:1.1em;display:grid;gap:3px}
.gx-sysreq__body li::marker{color:var(--line-strong)}
.gx-sysreq__body strong{color:var(--ink);font-weight:600}
.gx-sysreq__body br{display:none}

/* ---------- review score chart ---------- */

.gx-chart{margin-top:10px}
.revchart{display:block;width:100%;height:auto;overflow:visible}
.revchart__pct{fill:none;stroke:var(--ink);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.revchart__total{fill:none;stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}
.revchart__dot{fill:var(--yellow);stroke:var(--ink);stroke-width:1}
.revchart__axis{stroke:var(--line-strong);stroke-width:1}
.revchart__grid{stroke:var(--line);stroke-width:1}
.revchart__lbl{
  font-family:var(--body);font-size:9px;fill:var(--muted);
}
.revchart__lbl--total{fill:var(--muted);font-style:italic}

.gx-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.gx-legend span{display:inline-flex;align-items:center;gap:6px}
.gx-legend i{width:14px;height:0;border-top:2px solid var(--ink);display:inline-block}
.gx-legend .gx-legend__total i{border-top:1px dashed var(--muted)}

/* ---------- responsive ---------- */

@media (max-width:900px){
  .gx-review{padding:14px 15px}
}

@media print{
  .gx-news__go,.gx-more{display:none}
  .gx-sysreq[open] > summary::after,.gx-sysreq > summary::after{content:""}
}

/* Announcement artwork, when the Steam post carries one. Shown at its own
   ratio: this is not a 460x215 capsule and cropping it would cut the joke out
   of half of them. The cap stops a tall banner from owning the section. */
.gx-news__shot{
  display:block;margin-top:12px;border:1px solid var(--line-strong);
  background:var(--paper-3);line-height:0;
}
.gx-news__shot img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain}
.gx-news__shot:hover{border-color:var(--ink)}
