/* Hub homepage additions. Everything else comes from styles.css. */
.hero h1 { max-width: 13ch; }
.hero h1 .hot { color: var(--crimson); text-shadow: 0 0 28px rgba(226,13,28,0.45); }
.hero .lede { max-width: 38rem; font-size: 19px; }
.hero .cta-ghost { width: 220px; height: 52px; flex: 0 0 220px; }

.hub-sub { margin: -8px 0 20px; max-width: 44rem; color: var(--muted); }

.hub-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.hub-filter button {
  min-height: 44px; padding: 0 16px; cursor: pointer; background: transparent;
  border: 1px solid var(--line); color: var(--paper);
  font-family: var(--head); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
}
.hub-filter button:hover { border-color: #4a4a50; }
.hub-filter button[aria-pressed="true"] {
  border-color: var(--crimson);
  box-shadow: inset 0 0 0 1px var(--crimson), 0 0 14px rgba(226,13,28,0.28);
}

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hub-card {
  display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(#14151a, #0c0c0f);
  border: 1px solid var(--line); border-top: 2px solid var(--crimson);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 40px rgba(0,0,0,0.45);
  transition: border-color .15s ease, transform .15s ease;
}
.hub-card:hover { border-color: #4a4a50; transform: translateY(-2px); }
.hub-card[hidden] { display: none; }
.hub-media {
  position: relative; height: 180px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, rgba(226,13,28,0.12), transparent 62%), linear-gradient(180deg, #101114, #0a0a0c);
  border-bottom: 1px solid var(--line);
}
.hub-media img { width: 100%; height: 100%; object-fit: cover; }
.hub-media img.contain { object-fit: contain; padding: 28px; }
.hub-media.shot-light { background: #16202a; }
.hub-media.shot-light img { object-fit: cover; object-position: top center; background: #16202a; }
.hub-media .word {
  font-family: var(--head); font-weight: 700; font-size: 44px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper); text-shadow: 0 0 22px rgba(226,13,28,0.5); text-align: center; line-height: 0.9; padding: 0 16px;
}
.hub-media .word small { display: block; margin-top: 8px; font-size: 13px; letter-spacing: 0.24em; color: var(--muted); text-shadow: none; }
.hub-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 8px; color: var(--muted); border: 1px solid var(--line);
}
.chip.live { color: #fff; background: #1d6b3a; border-color: #1d6b3a; }
.chip.beta { color: #111; background: #f0b429; border-color: #f0b429; }
.chip.dev { color: #fff; background: var(--crimson); border-color: var(--crimson); }
.chip.internal { color: var(--paper); background: #3a3a3e; border-color: #3a3a3e; }
.chip.ver {
  font-family: ui-monospace, "Cascadia Mono", "IBM Plex Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: none;
}
.hub-body h3 { font-size: 28px; }
.hub-body p { margin: 0; color: var(--muted); flex: 1; }
.hub-body .cta { width: 100%; height: 44px; font-size: 15px; margin-top: 6px; text-decoration: none; }
.hub-next { justify-content: center; border: 1px dashed #4a4a50; background: transparent; box-shadow: none; min-height: 300px; padding: 28px 22px; gap: 12px; }
.hub-next:hover { transform: none; }
.hub-next .slot { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rivet); }
.hub-next h3 { font-size: 28px; }
.hub-next p { margin: 0; color: var(--muted); }
.hub-next .cta { width: 100%; height: 44px; font-size: 15px; text-decoration: none; }

.game-plate {
  border: 1px solid var(--line); border-top: 2px solid var(--crimson);
  background:
    linear-gradient(90deg, rgba(7,7,8,0.96) 0%, rgba(7,7,8,0.72) 55%, rgba(7,7,8,0.4) 100%),
    repeating-linear-gradient(45deg, #121214 0 30px, #0e0e10 30px 60px);
}
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; padding: 40px 32px; align-items: center; }
.game-kicker { margin: 0 0 10px; font-family: var(--head); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--crimson); }
.game-title { font-size: clamp(48px, 7vw, 84px); line-height: 0.9; margin-bottom: 16px; }
.game-pitch { margin: 0 0 18px; font-size: 18px; max-width: 34rem; }
.game-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; max-width: 30rem; }
.game-facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.game-facts dt { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.game-facts dd { margin: 2px 0 0; font-family: var(--head); font-weight: 700; font-size: 28px; text-transform: uppercase; }
.game-art {
  aspect-ratio: 16 / 9; display: grid; place-items: center; border: 1px solid #3a3a3e;
  background: radial-gradient(ellipse at 50% 70%, rgba(226,13,28,0.18), transparent 60%), rgba(10,10,12,0.7);
}
.game-art span { font-family: var(--head); font-weight: 700; font-size: clamp(36px, 5vw, 64px); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,244,244,0.12); text-align: center; line-height: 0.9; }

.shop-plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.shop-plates a { display: block; background: var(--steel); border: 1px solid var(--line); padding: 18px; }
.shop-plates a:hover { border-color: var(--crimson); }
.shop-plates h3 { font-size: 22px; margin-bottom: 6px; }
.shop-plates p { margin: 0; color: var(--muted); font-size: 15px; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 72px; }
.duo > div { background: var(--steel); border-top: 2px solid var(--crimson); padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.duo .kicker { margin: 0; color: var(--muted); }
.duo h2 { font-size: clamp(32px, 4vw, 44px); }
.duo p { margin: 0; color: #ececec; }
.duo .cta { align-self: flex-start; text-decoration: none; }

.featured-guntrace-shot img { aspect-ratio: 16 / 9; object-fit: cover; }
.featured-guntrace-shot img.uv-coins { aspect-ratio: auto; object-fit: contain; height: auto; background: #000; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }

@media (max-width: 980px) {
  .hero .cta-row .cta-ghost { flex: 0 0 220px; width: 220px; }
  .game-grid { padding: 28px 18px; }
}
@media (max-width: 520px) {
  .hero .cta-row { flex-direction: column; }
  .hero .cta-row .cta, .hero .cta-row .cta-ghost { width: 100%; flex: 0 0 auto; }
  .game-facts dd { font-size: 22px; }
}

/* Subpages */
.crumbs { margin: 28px 0 0; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: #fff; border-bottom-color: var(--crimson); }
.app-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; align-items: center; padding: 20px 0 8px; }
.app-hero h1 { font-size: clamp(48px, 7vw, 88px); margin: 10px 0 16px; }
.app-hero .lede { margin: 0 0 8px; font-size: 19px; max-width: 34rem; }
.app-hero .cta-row { margin-top: 24px; }
.app-art { aspect-ratio: 16 / 10; display: grid; place-items: center; border: 1px solid var(--line); border-top: 2px solid var(--crimson);
  background: radial-gradient(ellipse at 50% 60%, rgba(226,13,28,0.16), transparent 62%), linear-gradient(180deg, #101114, #0a0a0c); overflow: hidden; }
.app-art img { width: 100%; height: 100%; object-fit: cover; }
.app-art .word { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 6vw, 72px); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244,244,244,0.14); text-align: center; line-height: 0.9; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--steel); border-top: 2px solid var(--crimson); padding: 22px; }
.feature h3 { font-size: 24px; margin-bottom: 8px; }
.feature p { margin: 0; color: #ececec; }
.facts-table { width: 100%; max-width: 44rem; border-collapse: collapse; }
.facts-table th, .facts-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 34%; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.status-note { margin: 28px 0 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--steel); color: var(--muted); max-width: 44rem; }
.status-note b { font-family: var(--head); letter-spacing: 0.1em; color: var(--paper); margin-right: 8px; }
.next-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.work-intro { margin: -8px 0 8px; color: var(--muted); max-width: 44rem; }

/* Galleries */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.shot { display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--line); background: #0b0b0c; cursor: zoom-in; position: relative; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.shot span { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; background: rgba(0,0,0,0.72); font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.shot:hover { border-color: var(--crimson); }
.shot.tall img { aspect-ratio: 2 / 3; object-fit: contain; }
.poster-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.poster-row .shot img { aspect-ratio: 3 / 2; object-fit: contain; background: #0b0b0c; }
.game-art.has-img { padding: 0; overflow: hidden; }
.game-art.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-art.contain img { object-fit: contain; background: #0b0b0c; }
.badge-row { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.badge-row img { width: 64px; height: 64px; border-radius: 50%; }
.page-head .display { min-width: 0; overflow-wrap: anywhere; }
#hub-h {
  text-transform: none;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(42px, 6vw, 64px);
}
@media (max-width: 520px) { .page-head .rivet.grow { min-width: 0; } }
.app-hero > * { min-width: 0; }
.app-hero h1 { overflow-wrap: break-word; }
.app-hero h1.long { font-size: clamp(36px, 4.4vw, 60px); }

/* ---- MCP/MCT cable catalog ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cat-promo { display: grid; gap: 4px; margin: 0 0 36px; padding: 18px 20px; background: var(--steel); border: 1px solid var(--line); border-left: 4px solid var(--crimson); text-decoration: none; color: var(--paper); max-width: 44rem; }
.cat-promo:hover { border-color: var(--crimson); }
.cat-promo-k { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--crimson); }
.cat-promo-t { font-family: var(--head); font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: 0.04em; }
.cat-promo-d { color: var(--muted); }
.cat-head { padding: 8px 0 28px; }
.cat-head h1 { font-family: var(--head); font-size: clamp(44px, 7vw, 76px); text-transform: uppercase; letter-spacing: 0.03em; margin: 10px 0 8px; line-height: 0.95; }
.cat-head .lede { max-width: 44rem; color: var(--muted); }
.cat-search { position: relative; display: flex; gap: 10px; max-width: 44rem; margin-top: 18px; }
.cat-search input { flex: 1; min-width: 0; font: 600 20px/1.2 var(--head), sans-serif; letter-spacing: 0.06em; padding: 14px 16px; background: #0c0c0e; color: var(--paper); border: 1px solid var(--plate-steel-line, #3a3e46); border-radius: 0; text-transform: uppercase; }
.cat-search input::placeholder { text-transform: none; letter-spacing: 0.02em; color: #77777d; font-weight: 400; font-size: 16px; }
.cat-search input:focus { outline: 2px solid var(--crimson); outline-offset: 0; }
.cat-search .cta { white-space: nowrap; }
.cat-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0; list-style: none; background: #121215; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.5); max-height: 340px; overflow: auto; }
.cat-suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.cat-suggest li span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.cat-suggest li:hover, .cat-suggest li.on { background: #1d1d22; box-shadow: inset 3px 0 0 var(--crimson); }
.cat-hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.cat-hint a { color: var(--paper); }
.cat-sheet { margin: 8px 0 44px; scroll-margin-top: calc(var(--header-h, 84px) + 12px); }
.cat-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--crimson); }
.cat-kicker { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-size: 13px; }
.cat-type { font-family: var(--head); font-size: clamp(40px, 6vw, 64px); margin: 4px 0 10px; letter-spacing: 0.03em; line-height: 1; overflow-wrap: anywhere; }
.cat-rating { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.cat-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-actions .cta { padding: 10px 16px; min-width: 0; }
.cat-top > div { min-width: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.cat-card { background: var(--steel); border: 1px solid var(--line); border-top: 2px solid var(--crimson); padding: 18px 18px 14px; min-width: 0; }
.cat-card h3 { font-family: var(--head); font-size: 20px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px; }
.cat-card h3 .cat-sub { display: inline; margin-left: 8px; letter-spacing: 0.04em; }
.cat-t { width: 100%; border-collapse: collapse; }
.cat-t > tbody > tr > th, .cat-t > tr > th { text-align: left; width: 46%; padding: 8px 10px 8px 0; font-family: var(--head); font-weight: 700; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); vertical-align: top; border-bottom: 1px solid var(--line); }
.cat-t > tbody > tr > td, .cat-t > tr > td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cat-t b { font-size: 18px; }
.cat-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cat-amp { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cat-amp th, .cat-amp td { padding: 3px 10px 3px 0; text-align: left; font-size: 14px; }
.cat-amp thead th, .cat-amp tbody th { color: var(--muted); font-weight: 400; }
.cat-pending { color: #f0b429; }
.cat-xs { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; }
.cat-xs svg { width: 110px; height: 110px; flex: none; }
.cat-xs-ref { fill: none; stroke: #6a6a72; stroke-dasharray: 3 4; }
.cat-xs-od { fill: #222; stroke: var(--crimson); stroke-width: 2; }
.cat-xs-dim { stroke: var(--paper); stroke-width: 1; }
.cat-xs figcaption b { font-size: 20px; }
.cat-xs figcaption span { display: block; color: var(--muted); font-size: 13px; }
.cat-desc { margin-top: 16px; }
.cat-desc p { margin: 0; color: #e4e4e4; }
.cat-note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid #f0b429; background: #1a1712; color: #e8e2d4; }
.cat-note b { font-family: var(--head); letter-spacing: 0.1em; text-transform: uppercase; margin-right: 6px; color: #f0b429; }
.cat-sibs { margin-top: 16px; }
.cat-scroll { overflow-x: auto; max-width: 100%; }
.cat-list { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.cat-list th { text-align: left; font-family: var(--head); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.cat-list td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); }
.cat-list tr.on td { background: rgba(226,13,28,.12); }
.cat-list a { color: var(--paper); font-weight: 700; }
.cat-browse { margin-top: 12px; }
.cat-filter { width: 100%; max-width: 44rem; padding: 10px 12px; margin: 0 0 14px; background: #0c0c0e; color: var(--paper); border: 1px solid var(--line); font: inherit; }
.cat-families { display: grid; gap: 6px; }
.cat-fam { background: var(--steel); border: 1px solid var(--line); }
.cat-fam summary { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 12px 14px; cursor: pointer; list-style: none; }
.cat-fam summary::-webkit-details-marker { display: none; }
.cat-fam summary b { font-family: var(--head); font-size: 18px; letter-spacing: 0.04em; }
.cat-fam summary span { color: var(--muted); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-fam summary i { font-style: normal; color: var(--rivet); font-family: var(--head); }
.cat-fam[open] summary { border-bottom: 1px solid var(--line); }
.cat-fam-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.cat-fam-list a { padding: 4px 9px; border: 1px solid var(--line); color: var(--paper); text-decoration: none; font-size: 14px; }
.cat-fam-list a:hover { border-color: var(--crimson); }
@media (max-width: 560px) {
  .cat-search { flex-direction: column; }
  .cat-fam summary { grid-template-columns: 1fr auto; }
  .cat-fam summary span { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  header.top, footer.foot, .cat-head, .cat-browse, .status-note, .next-links, .crumbs, .cat-actions, .lb { display: none !important; }
  body { background: #fff; color: #000; }
  .cat-card { background: #fff; border-color: #999; break-inside: avoid; }
  .cat-card *, .cat-type, .cat-kicker, .cat-rating, .cat-t th, .cat-sub { color: #000 !important; }
  .cat-xs-od { fill: #ddd; }
}
@media (min-width: 980px) { .cat-fit { grid-column: span 2; } .cat-fit .cat-t > tbody > tr > th, .cat-fit .cat-t > tr > th { width: 28%; } }

.cat-tubes { margin: 8px 0 4px; }
.cat-tubes td { white-space: nowrap; }
.cat-dim { color: var(--muted); font-size: 12px; margin-left: 4px; }
@media (max-width: 560px) { .cat-tubes td { white-space: normal; } .cat-dim { display: block; margin-left: 0; } }
