/* ==========================================================================
   GEAR — image-led cards, one accent per category, a comparison tray and a
   setup builder. Replaces eleven identical grey boxes.
   ========================================================================== */

/* ------------------------------- the opener ------------------------------- */
.ghero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(74vh, 620px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ink);
}
/* Its own clip: the ken-burns transform scales the photograph past this box,
   and a scaled child was adding 7px of horizontal page scroll. */
.ghero__media { position: absolute; inset: -6% 0; z-index: 0; overflow: hidden; }
.ghero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
/* The wash is concentrated behind the text, not spread over the whole photo —
   the picture is the reason the section exists. */
.ghero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,10,11,0.95) 0%, rgba(8,10,11,0.86) 34%, rgba(8,10,11,0.42) 58%, rgba(8,10,11,0.08) 82%),
    radial-gradient(80% 70% at 6% 40%, rgba(255,145,87,0.20), transparent 60%),
    linear-gradient(0deg, var(--ink) 0%, transparent 42%);
}
.ghero__in {
  position: relative; z-index: 1;
  width: min(var(--shell), 100% - var(--gutter) * 2); margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  max-width: min(62ch, 100%);
}
.ghero__t {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: 0.96;
  letter-spacing: -0.045em; font-weight: 800; color: var(--cream);
  text-shadow: 0 2px 44px rgba(0,0,0,0.75);
}
.ghero__lede { margin: 0 0 1.5rem; max-width: 56ch; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.6; color: var(--cream); }
.ghero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.ghero__credit { margin: 1.3rem 0 0; font-size: 0.8125rem; color: var(--cream-dim); }

/* ---------------------------- image-led cards ---------------------------- */
.gps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  align-items: stretch;
}
.gp__in {
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(var(--a-rgb) / 0.05), var(--surface) 38%);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .gp:hover .gp__in {
    transform: translateY(-4px); border-color: rgb(var(--a-rgb) / 0.55);
    box-shadow: 0 26px 56px -30px rgba(0,0,0,0.95), 0 0 0 1px rgb(var(--a-rgb) / 0.3);
  }
  .gp:hover .gp__art img { transform: scale(1.06); }
}
.gp__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #06090A; }
.gp__art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
/* Four crops, so the same illustration used twice in a section does not read
   as the same picture twice. Classes rather than inline styles — the preview
   serves this under style-src 'self'. */
.gp__img--c0 { object-position: 50% 50%; }
.gp__img--c1 { object-position: 34% 64%; }
.gp__img--c2 { object-position: 68% 38%; }
.gp__img--c3 { object-position: 50% 26%; }
/* Tint the artwork to its platform, so a PlayStation card and an Xbox card do
   not read as the same card twice. */
.gp__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(8,10,11,0.72) 100%),
    linear-gradient(140deg, rgb(var(--a-rgb) / 0.34), transparent 62%);
  mix-blend-mode: normal;
}
/* The one specification that decides the choice, big enough to read from the
   scroll. This is type, not a photograph, and it never implies one. */
.gp__badge {
  position: absolute; left: 0.85rem; bottom: 0.8rem; z-index: 1;
  font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--a-ink); background: var(--a);
  padding: 0.24rem 0.7rem; border-radius: 7px;
}
.gp__maker {
  position: absolute; right: 0.85rem; top: 0.8rem; z-index: 1;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream); background: rgba(8,10,11,0.76);
  border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 0.2rem 0.55rem;
}
.gp__b { display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem 1.05rem 1.15rem; flex: 1; }
.gp__t { margin: 0; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--cream); }
.gp__art-note { margin: -0.2rem 0 0; font-size: 0.75rem; color: var(--cream-dim); }
.gp__specs { margin: 0; display: grid; gap: 0.3rem; }
.gp__specs > div { display: flex; gap: 0.6rem; font-size: 0.875rem; line-height: 1.45; }
.gp__specs dt { flex: none; min-width: 5.6rem; color: var(--cream-dim); font-weight: 700; }
.gp__specs dd { margin: 0; color: var(--cream); }
.gp__best { margin: 0.15rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--cream-dim); }
.gp__bestl, .gp__warnl {
  display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--a); margin-bottom: 0.15rem;
}
.gp__warnl { color: var(--sunset); }
.gp__more { margin-top: auto; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.gp__more summary {
  cursor: pointer; font-size: 0.875rem; font-weight: 700; color: var(--cream);
  list-style: none; display: flex; align-items: center; gap: 0.45rem;
}
.gp__more summary::-webkit-details-marker { display: none; }
.gp__more summary::before {
  content: "+"; width: 18px; height: 18px; flex: none; display: grid; place-items: center;
  border: 1px solid rgb(var(--a-rgb) / 0.5); border-radius: 5px; color: var(--a); font-weight: 800;
}
.gp__more[open] summary::before { content: "\2212"; }
.gp__moreb { padding-top: 0.7rem; display: grid; gap: 0.6rem; }
.gp__warn, .gp__ev { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--cream-dim); }
.gp__ev { font-size: 0.8125rem; border-left: 2px solid var(--line); padding-left: 0.7rem; }
.gp__foot { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.4rem; }
.gp__go { flex: 1 1 auto; justify-content: center; white-space: normal; text-align: center; }
.gp__cmp {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  padding: 0.5rem 0.75rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 700;
  background: transparent; color: var(--cream); border: 1px solid var(--line);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.gp__cmp:hover:not(:disabled) { border-color: var(--a); color: var(--a); }
.gp__cmp:disabled { opacity: 0.45; cursor: not-allowed; }
.gp__cmpbox {
  width: 15px; height: 15px; flex: none; border-radius: 4px; border: 1.5px solid currentColor;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.gp__cmp[aria-pressed="true"] { border-color: var(--a); color: var(--a); background: rgb(var(--a-rgb) / 0.1); }
.gp__cmp[aria-pressed="true"] .gp__cmpbox { background: var(--a); box-shadow: inset 0 0 0 2px var(--surface); }
.gp__chk { margin: 0; font-size: 0.8125rem; color: var(--cream-dim); }

/* ---------------------------- comparison tray ---------------------------- */
.cmp {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(10, 13, 14, 0.96); border-top: 1px solid rgb(var(--a-rgb) / 0.45);
  backdrop-filter: blur(10px);
  box-shadow: 0 -18px 50px -24px rgba(0,0,0,0.9);
}
.cmp__in { width: min(var(--shell), 100% - var(--gutter) * 2); margin-inline: auto; padding: 0.75rem 0 0.9rem; }
.cmp__head { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between; }
.cmp__h { margin: 0; font-size: 1rem; font-weight: 800; color: var(--cream); }
.cmp__h span { color: var(--a); }
.cmp__acts { display: flex; gap: 0.5rem; align-items: center; }
.cmp__clear { background: none; border: 0; color: var(--cream-dim); cursor: pointer; font-size: 0.875rem; font-weight: 700; text-decoration: underline; }
.cmp__clear:hover { color: var(--cream); }
.cmp__list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cmp__i {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgb(var(--a-rgb) / 0.4); border-radius: 999px;
  background: rgb(var(--a-rgb) / 0.08); padding: 0.28rem 0.35rem 0.28rem 0.8rem;
}
.cmp__n { font-size: 0.875rem; font-weight: 700; color: var(--cream); }
.cmp__x {
  width: 24px; height: 24px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 0; background: rgba(255,255,255,0.08); color: var(--cream); font-size: 1rem; line-height: 1;
}
.cmp__x:hover { background: var(--a); color: var(--a-ink); }

/* ---------------------------- comparison panel ---------------------------- */
.cpanel { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: var(--gutter); }
.cpanel[hidden] { display: none !important; }
.cpanel__scrim { position: absolute; inset: 0; background: rgba(4,6,7,0.9); }
.cpanel__box {
  position: relative; width: min(1100px, 100%); max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid rgb(var(--a-rgb) / 0.4); border-radius: var(--radius-lg);
  overflow: hidden;
}
.cpanel__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(var(--a-rgb) / 0.12), transparent);
}
.cpanel__t { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--cream); }
.cpanel__x {
  width: 38px; height: 38px; flex: none; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.07); border: 1px solid var(--line); color: var(--cream); font-size: 1.35rem; line-height: 1;
}
.cpanel__x:hover { background: var(--a); color: var(--a-ink); border-color: var(--a); }
.cpanel__body { overflow: auto; padding: 1rem 1.1rem; }
/* The comparison table. Sticky header row and sticky first column, so a wide
   comparison stays legible while you scroll it either way. */
.cmpt { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmpt th, .cmpt td {
  padding: 0.65rem 0.8rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
}
.cmpt th:last-child, .cmpt td:last-child { border-right: 0; }
.cmpt tr:last-child th, .cmpt tr:last-child td { border-bottom: 0; }
.cmpt__corner, .cmpt__ph {
  position: sticky; top: 0; z-index: 2;
  background: #12181A; color: var(--cream); font-weight: 800;
  border-bottom: 1px solid rgb(var(--a-rgb) / 0.4);
}
.cmpt__corner { left: 0; z-index: 3; min-width: 9rem; }
.cmpt__pm { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a); }
.cmpt__pn { display: block; font-size: 1rem; line-height: 1.3; margin-top: 0.15rem; }
.cmpt__k {
  position: sticky; left: 0; z-index: 1; background: #101617;
  font-size: 0.8125rem; font-weight: 700; color: var(--cream-dim); white-space: nowrap;
}
.cmpt__v { font-size: 0.9375rem; line-height: 1.5; color: var(--cream); min-width: 12rem; }
.cmpt__v--warn { color: var(--sunset); }
.cmpt__none { color: var(--cream-dim); font-style: italic; }
.cmpt__at { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: var(--cream-dim); }

.cpanel__note { margin: 0; padding: 0.75rem 1.1rem 1rem; font-size: 0.8125rem; color: var(--cream-dim); border-top: 1px solid var(--line); }

/* ----------------------------- setup builder ----------------------------- */
.bld { display: grid; gap: clamp(1rem, 2.4vw, 1.8rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.bld__form { display: grid; gap: 1rem; }
.bld__q { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.9rem 1rem 1rem; margin: 0; background: rgba(255,255,255,0.015); }
.bld__l { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--cream); font-size: 1rem; padding: 0; }
.bld__n {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--a); color: var(--a); font-size: 0.8125rem; font-weight: 800;
}
.bld__opt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream-dim); }
.bld__opts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.opt {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.9rem;
  font-size: 0.9375rem; font-weight: 600; color: var(--cream);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  min-height: 44px;
}
.opt:hover { border-color: rgb(var(--a-rgb) / 0.6); }
.opt input { accent-color: var(--a); width: 17px; height: 17px; }
.opt:has(input:checked) { border-color: var(--a); background: rgb(var(--a-rgb) / 0.1); }
.opt:has(input:focus-visible) { outline: 3px solid var(--a); outline-offset: 2px; }

.bldr { border: 1px solid rgb(var(--a-rgb) / 0.4); border-radius: var(--radius-lg); padding: 1.1rem 1.15rem 1.2rem; background: linear-gradient(180deg, rgb(var(--a-rgb) / 0.09), var(--surface) 46%); }
.bldr__t { margin: 0 0 0.45rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.025em; color: var(--cream); }
.bldr__l { margin: 0 0 1rem; line-height: 1.6; color: var(--cream-dim); }
.bldr__list { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; gap: 0.6rem; }
.bldr__i { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.8rem; background: rgba(0,0,0,0.25); }
.bldr__b { display: grid; gap: 0.15rem; min-width: 0; }
.bldr__n { font-weight: 700; color: var(--cream); }
.bldr__m { font-size: 0.8125rem; color: var(--cream-dim); }
.bldr__tot, .bldr__none { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--cream-dim); }
.bld__note { margin: 1.2rem 0 0; font-size: 0.8125rem; line-height: 1.6; color: var(--cream-dim); max-width: 92ch; }

@media (max-width: 900px) {
  .bld { grid-template-columns: 1fr; }
  .cpanel { padding: 0; }
  .cpanel__box { max-height: 100vh; height: 100%; border-radius: 0; border: 0; }
  .cpanel__grid { grid-template-columns: minmax(7rem, 0.9fr) repeat(var(--n), minmax(10rem, 1fr)); }
}
@media (max-width: 560px) {
  .cmp__in { padding-bottom: 0.7rem; }
  .cmp__head { flex-direction: column; align-items: flex-start; }
}
