/* =========================================================================
   Kings of Golf · GAME RULES TEMPLATE (/games/skins, /nassau, /wolf, /tilt)
   One stylesheet for all four game pages. Ship it once, e.g. /marketing/games-rules.css.
   Loads AFTER /marketing/base.css. Uses base tokens and base classes:
     .wrap .eyebrow(--gold) .rail(--dark) .btn(--gold) .avatar(--sm --ring) .faq
   Everything new is scoped under .gr / .gr-*. Mobile-first; breakpoints match base
   (860px, 1100px). No new tokens.
   ========================================================================= */

/* ---------- hero ---------- */
.gr-hero { position: relative; overflow: hidden; background: var(--green-950); color: #fff; }
.gr-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.gr-hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--green-950) 0%, rgba(14,36,22,.9) 50%, rgba(14,36,22,.35) 100%); }
.gr-hero__inner { position: relative; z-index: 1; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-top: 120px; padding-bottom: 36px; }
.gr-hero h1 { font-size: 40px; line-height: 1.02; letter-spacing: -0.02em; max-width: 12ch; }
.gr-hero__lede { font-size: 17px; color: var(--on-dark); max-width: 44ch; }

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

.gr-chips { list-style: none; margin: 0; padding: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gr-chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(14,36,22,.4); font-size: 14px; font-weight: 600; }
.gr-chips li.is-only { background: var(--gold-tint); color: var(--gold-ink); border-color: var(--gold-tint); } /* Tilt: "Only on Kings of Golf" */

.gr-livecard { display: none; }

/* ---------- body layout ---------- */
.gr-body { display: flex; flex-direction: column; gap: 32px; padding-top: 32px; padding-bottom: 56px; }
.gr-main { min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.gr-main h2 { font-size: 26px; }
.gr-main p { color: var(--ink-2); }

/* 30 seconds */
.gr-quick { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.gr-quick h2 { font-size: 21px; }
.gr-quick ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.gr .gr-quick__note { color: var(--gold-ink); font-size: 15px; font-weight: 600; }

/* worked example */
.gr-example { display: flex; flex-direction: column; gap: 14px; }
.gr-table { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.gr-table table { width: 100%; min-width: 460px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.gr-table thead th { text-align: left; padding: 12px 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gr-table tbody th, .gr-table td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); }
.gr-table tbody th { font-weight: 700; }
.gr-table tr.is-hl > * { background: var(--up-soft); }
.gr-table .is-tie { color: var(--gold-ink); font-weight: 600; }
.gr-table .is-win { color: var(--up); font-weight: 700; }
.gr-table .is-lose { color: #B42318; font-weight: 600; }
.gr-player { display: inline-flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.gr-player .avatar { width: 26px; height: 26px; }

.gr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gr-pair figure { position: relative; margin: 0; height: 240px; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-700); }
.gr-pair img { width: 100%; height: 100%; object-fit: cover; }
.gr-pair figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.gr-pair figcaption.is-tie { background: var(--gold-soft); color: var(--gold-ink); }
.gr-pair figcaption.is-win { background: var(--ink); color: #fff; }

.gr-settle { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--up-soft); }
.gr-settle span { font-weight: 600; color: var(--ink); }
.gr-inline-cta { width: 100%; }
.gr-settle strong { font-size: 24px; color: var(--up); font-variant-numeric: tabular-nums; }

/* rules */
.gr-rules { display: flex; flex-direction: column; gap: 10px; }
.gr-rules h3 { font-size: 19px; margin-top: 8px; }

/* score it your way (candidate for base as .score-modes; same copy on every game page) */
.gr-modes { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.gr .gr-modes h2 { font-size: 22px; }
.gr-modes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gr-modes li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--ink-2); }
.gr-modes li:first-child { border: 2px solid var(--up); }
.gr-modes li strong { color: var(--ink); font-size: 16px; line-height: 1.3; }

/* FAQ: base .faq supplies details/summary styling; just reset its section padding here */
.gr .gr-faq { padding: 0; }
.gr .gr-faq h2 { margin-bottom: 4px; }

/* related games */
.gr-related h2 { font-size: 22px; margin-bottom: 12px; }
.gr-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gr-related a { display: grid; grid-template-columns: 96px 1fr; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink); text-decoration: none; }
.gr-related a:hover { border-color: var(--ink-2); color: var(--ink); }
.gr-related img { width: 100%; height: 72px; object-fit: cover; }
.gr-related a span { padding: 10px 14px; display: flex; flex-direction: column; color: var(--muted); font-size: 14px; }
.gr-related a strong { color: var(--ink); font-size: 16px; }

/* sidebar */
.gr-side { display: flex; flex-direction: column; gap: 16px; }
.gr-cta { background: var(--green-950); color: #fff; border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.gr .gr-cta__big { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.25; }
.gr .gr-cta__small { color: var(--on-dark-muted); font-size: 14px; }
.gr-accent { display: none; }
.gr-toc { display: none; }

/* =========================================================================
   --md ≥ 860px
   ========================================================================= */
@media (min-width: 860px) {
  .gr-hero::after { background: linear-gradient(90deg, var(--green-950) 0%, rgba(14,36,22,.92) 34%, rgba(14,36,22,.45) 58%, rgba(14,36,22,.05) 82%); }
  .gr-hero__inner { min-height: 520px; justify-content: center; padding-top: 40px; padding-bottom: 56px; }
  .gr-hero h1 { font-size: 60px; }
  .gr-hero__lede { font-size: 19px; }

  /* decorative live scorecard over the photo */
  .gr-livecard { position: absolute; z-index: 1; right: max(24px, calc(50% - 566px)); bottom: 40px; width: 330px; padding: 14px; border-radius: 18px;
    border: 1px solid rgba(255,255,255,.4); background: rgba(14,36,22,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .gr-livecard__k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
  .gr-livecard__row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.08); }
  .gr-livecard__row b { margin-left: auto; }
  .gr-livecard__row.is-tie { background: rgba(232,177,15,.2); }
  .gr-livecard__row.is-tie b { color: var(--gold); }
  .gr-livecard__row.is-win { background: var(--ink); }
  .gr-livecard__row.is-win b { color: var(--up-on-dark); }
  .gr-livecard .avatar { width: 24px; height: 24px; }

  .gr-body { flex-direction: row; align-items: flex-start; gap: 40px; padding-top: 44px; padding-bottom: 72px; }
  .gr-main { flex: 1 1 0; }
  .gr-main h2 { font-size: 30px; }
  .gr-quick { padding: 24px; }
  .gr-quick h2 { font-size: 22px; }
  .gr-pair { gap: 12px; }
  .gr-pair figure { height: 300px; }
  .gr-pair figcaption { left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; font-size: 14px; }
  .gr-settle { padding: 14px 18px; }
  .gr-inline-cta { display: none; }
  .gr-settle strong { font-size: 26px; }
  .gr-rules h3 { font-size: 20px; }
  .gr-modes { padding: 24px; }
  .gr .gr-modes h2 { font-size: 24px; }
  .gr-modes ol { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gr-related h2 { font-size: 24px; }
  .gr-related ul { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gr-related a { grid-template-columns: 1fr; align-items: stretch; }
  .gr-related img { height: 110px; }
  .gr-related a span { padding: 12px 14px; }

  .gr-side { flex: 0 0 300px; position: sticky; top: calc(var(--nav-h) + 24px); }
  .gr-accent { display: block; width: 100%; height: 200px; object-fit: cover; object-position: center 25%; border-radius: 16px; }
  .gr-toc { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 15px; }
  .gr-toc .eyebrow { color: var(--muted); }
}

/* =========================================================================
   --lg ≥ 1100px
   ========================================================================= */
@media (min-width: 1100px) {
  .gr-side { flex-basis: 340px; }
}
