/* =========================================================================
   Kings of Golf · Games hub (/games) · page styles only
   Loads AFTER /marketing/base.css. Uses base tokens (--green-950, --gold, …)
   and base classes: .wrap .wrap--narrow .eyebrow .rail .btn .avatar .faq .final
   Everything here is scoped under .gh / .gh-* so it can't leak.
   Breakpoints match base: 860px (--md), 1100px (--lg).
   ========================================================================= */

/* REUSABLE ADDITION (candidate for base.css): visually-hidden text for
   screen readers, used to make repeated link text unique ("How to play Skins"). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero ---------- */
.gh-hero { position: relative; overflow: hidden; background: var(--green-950); color: #fff; }
.gh-hero__media { position: absolute; inset: 0; }
.gh-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.gh-hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--green-950) 0%, rgba(14,36,22,.88) 45%, rgba(14,36,22,.45) 75%, rgba(14,36,22,.25) 100%); }
.gh-hero__inner { position: relative; padding-top: 140px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.gh-hero h1 { font-size: 36px; line-height: 1.05; letter-spacing: -0.02em; max-width: 16ch; }
.gh-hero__lede { font-size: 17px; color: var(--on-dark); max-width: 52ch; }

.gh-crumbs ol { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--on-dark-muted); }
.gh-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.gh-crumbs a { color: var(--on-dark); }
.gh-crumbs a:hover { color: #fff; }

/* ---------- games ---------- */
.gh-games { padding: 40px 0 48px; }
.gh-games__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.gh-games__head h2 { font-size: 28px; }
.gh-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.gh-filter::-webkit-scrollbar { display: none; }
.gh-chip { flex-shrink: 0; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D5D9D1; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.gh-chip:hover { border-color: var(--ink-2); }
.gh-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gh-count { min-height: 1.5em; margin: 6px 0 14px; font-size: 14px; color: var(--muted); }

.gh-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.gh-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.gh-card[hidden] { display: none; }
.gh-card--feature { background: var(--gold-soft); border: 2px solid var(--gold); }
.gh-card__img { position: relative; height: 180px; background: var(--green-700); }
.gh-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gh-badge { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--gold-tint); padding: 3px 9px; border-radius: 999px; }
.gh-card__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.gh-card h3 { font-size: 24px; }
.gh-card p { color: var(--ink-2); }
.gh-facts { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.gh-facts div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.gh-facts dt { color: var(--muted); }
.gh-facts dd { margin: 0; font-weight: 600; }
.gh-card__actions { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 10px; }
.gh-card__actions .btn { flex: 1 1 auto; }
.gh-btn-line { background: transparent; color: var(--ink); border: 1.5px solid #D5D9D1; }
.gh-btn-line:hover { color: var(--ink); border-color: var(--ink-2); }
.gh-custom { margin: 16px 0 0; color: var(--ink-2); }
.gh-empty { padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px dashed #C7CEC4; color: var(--ink-2); text-align: center; }

/* ---------- score it your way ---------- */
.gh-modes { background: var(--surface-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 48px 0; }
.gh-modes__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; max-width: 640px; }
.gh-modes__head h2 { font-size: 30px; }
.gh-modes__head p { color: var(--ink-2); font-size: 17px; }
.gh-modes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: mode; }
.gh-mode { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.gh-mode__art { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.gh-mode__art .avatar + .avatar { margin-left: -12px; border: 2px solid var(--card); }
.gh-mode__art .avatar--ring { outline-offset: 1px; }
.gh-dim { filter: grayscale(.6); opacity: .55; }
.gh-mode__tag { margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.gh-mode__tag--live { background: var(--up-soft); color: var(--up); }
.gh-mode h3 { font-size: 19px; line-height: 1.25; }
.gh-mode p { color: var(--ink-2); font-size: 15px; }
.gh-mode:first-child { border: 2px solid var(--up); }

/* ---------- which game ---------- */
.gh-pick { padding: 48px 0 24px; }
.gh-pick h2 { font-size: 28px; margin-bottom: 16px; }
.gh-table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
.gh-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.gh-table th { text-align: left; padding: 14px 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gh-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.gh-table td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.gh-table td:nth-child(3) { color: var(--ink-2); }
.gh-tools { margin-top: 18px; color: var(--ink-2); }

/* phones: the comparison table becomes stacked rows (no sideways scroll) */
@media (max-width: 859px) {
  .gh-table-wrap { overflow: visible; }
  .gh-table { min-width: 0; }
  .gh-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gh-table, .gh-table tbody, .gh-table tr, .gh-table td { display: block; }
  .gh-table tr { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .gh-table tr:first-child { border-top: 0; }
  .gh-table td { padding: 0; border: 0; }
  .gh-table td:nth-child(1) { color: var(--muted); font-size: 14px; }
  .gh-table td:nth-child(1)::before { content: "If your group "; }
  .gh-table td:nth-child(2) { grid-column: 2; grid-row: 1; align-self: start; }
  .gh-table td:nth-child(3) { grid-column: 1 / -1; }
}

/* =========================================================================
   --md ≥ 860px
   ========================================================================= */
@media (min-width: 860px) {
  .gh-hero__media img { object-position: 70% 35%; }
  .gh-hero__media::after { background: linear-gradient(90deg, var(--green-950) 0%, rgba(14,36,22,.9) 38%, rgba(14,36,22,.35) 65%, rgba(14,36,22,.1) 100%); }
  .gh-hero__inner { padding-top: 72px; padding-bottom: 80px; min-height: 420px; justify-content: center; }
  .gh-hero h1 { font-size: 52px; }
  .gh-hero__lede { font-size: 19px; max-width: 46ch; }

  .gh-games { padding: 64px 0 72px; }
  .gh-games__head { flex-direction: row; align-items: center; justify-content: space-between; }
  .gh-games__head h2 { font-size: 34px; }
  .gh-filter { margin: 0; padding: 0; flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
  .gh-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gh-card__img { height: 200px; }
  .gh-card__body { padding: 22px; }
  .gh-card__actions .btn { flex: 0 0 auto; }

  .gh-modes { padding: 80px 0; }
  .gh-modes__head h2 { font-size: 40px; }
  .gh-modes__list { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .gh-mode { padding: 22px; }

  .gh-pick { padding: 72px 0 32px; }
  .gh-pick h2 { font-size: 34px; }
}

/* =========================================================================
   --lg ≥ 1100px
   ========================================================================= */
@media (min-width: 1100px) {
  .gh-hero__inner { min-height: 460px; }
  .gh-hero h1 { font-size: 58px; }
  .gh-grid { grid-template-columns: repeat(4, 1fr); }
  .gh-card__img { height: 170px; }
  .gh-card__actions .btn { flex: 1 1 auto; }
}
