/* The game page (prompt 348, BL-1705): the approved 342 mockup,
   live. Palette variables only, so the light theme follows the :root flip;
   the few fixed colours carry their light overrides in theme-light.css
   (the "golive348: game page" block). Loaded after the page's own <style>. */

:root { --gp-c0: #DDBC84; --gp-c1: #00C896; }

/* The header: the title and the CCO's one line, nothing else above the card */
body[data-game-page] .og-kicker { display: none; }
body[data-game-page] .og-top.og-in { padding: 2px 0 0; }
body[data-game-page] .page-hdr { margin-bottom: 0; }
@media (max-width: 600px) { body[data-game-page] main { padding-top: 12px; } }
body[data-game-page] .crumbs { font-size: 11.5px; margin: 0 0 6px; line-height: 1.4; }
body[data-game-page] .page-hdr h1 { margin-bottom: 2px; font-size: 21px; line-height: 1.2; }
@media (min-width: 900px) { body[data-game-page] .page-hdr h1 { font-size: 26px; } }
.gp-line { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }

/* The price card */
.gp-card-wrap { margin: 0 0 12px; }
.gp-card { margin: 0; }
.gp-card .game-header { cursor: default; }
.gp-card .gc-markets.gp-ml-only { grid-template-columns: minmax(72px, 110px) minmax(72px, 1fr); }
.gp-card .gp-ml-only .gc-col-label.lbl-ml,
.gp-card .gp-ml-only .bet-pill.pos-ml-away,
.gp-card .gp-ml-only .bet-pill.pos-ml-home { grid-column: 2; }
.gp-cell { font: inherit; color: inherit; cursor: pointer; }
.gp-cell[aria-expanded="true"] { outline: 2px solid var(--gold); outline-offset: -2px; }
.gp-draw { font-size: 12.5px; color: var(--muted); padding: 6px 12px; border-top: 1px solid var(--border); }
.gp-tip { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px;
  color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--border); }
.gp-tip[hidden], .gp-actnote[hidden] { display: none; }
.gp-tip b { color: var(--gold-lt); }
.gp-cardfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px;
  color: var(--muted); padding: 7px 12px; border-top: 1px solid var(--border); }
.gp-cardfoot a, .gp-linkbtn { color: var(--gold-lt); text-decoration: none; font-weight: 700; }
.gp-linkbtn { background: none; border: 0; padding: 0; font-size: 12px; cursor: pointer; font-family: inherit; }
.gp-plan { justify-content: center; }
.gp-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--border); }
.gp-actions button { background: none; border: 0; color: var(--text); font: 700 11px/1.2 inherit; font-family: inherit;
  padding: 8px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.gp-actions svg { width: 19px; height: 19px; stroke: var(--gold-lt); fill: none; stroke-width: 1.8; }
.gp-actnote { font-size: 12.5px; color: var(--muted); padding: 0 12px 9px; }
.gp-actnote a { color: var(--gold-lt); font-weight: 700; }

/* TOG Bot, one line under the card (website only) */
.gp-bot { margin: 0 0 14px; }
.gp-botform { display: flex; gap: 8px; }
.gp-botform input { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 9px 11px; font-size: 16px; font-family: inherit; }
.gp-botform button { background: var(--gold); color: #000; border: 0; border-radius: 9px; font-weight: 800;
  padding: 9px 14px; font-family: inherit; cursor: pointer; }
.gp-botchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.gp-botchips a { background: var(--bg2); border: 1px solid var(--border); color: var(--text); border-radius: 999px;
  padding: 6px 10px; font-size: 12.5px; text-decoration: none; }
.gp-botchips a:hover { border-color: var(--gold); }

/* Sections */
.gp-sec { margin: 0 0 14px; }
.gp-h2 { font-size: 15px; font-weight: 800; margin: 0 0 8px; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.gp-h3 { font-size: 13px; font-weight: 800; color: var(--muted); margin: 14px 0 4px; }
.gp-sub { color: var(--muted); font-size: 12px; font-weight: 600; }

/* Line History, in the page */
.gp-expand { margin-left: auto; background: none; border: 1px solid var(--gold); color: var(--gold-lt);
  border-radius: 7px; font: 700 12px/1 inherit; font-family: inherit; padding: 6px 9px; cursor: pointer; }
.gp-chartbtn { display: block; width: 100%; padding: 0; border: 0; background: var(--bg2); border-radius: 10px;
  cursor: zoom-in; border: 1px solid var(--border); overflow: hidden; }
.gp-chartbtn svg { display: block; width: 100%; height: auto; aspect-ratio: 720 / 200; }
.gp-chartbtn.gp-empty svg { aspect-ratio: 720 / 60; }
.gp-tapline { text-align: center; font-size: 12px; color: var(--gold-lt); font-weight: 700; margin: 6px 0 0; }
.gp-tapline .gp-expand { margin-left: 0; }
.gp-legend { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.gp-legend b { color: var(--text); }
.gp-legend i, .gp-lh-legend i, .gp-lh-tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: 3px; margin: 0 4px 0 2px; }
.gp-sw-a { background: var(--gp-c0); }
.gp-sw-h { background: var(--gp-c1); margin-left: 8px !important; }
.gp-ref { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
svg .gp-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
svg .gp-axis { fill: var(--muted); font-size: 11px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
svg .gp-guide { stroke: var(--gold); }

/* The action row and its sections, closed until tapped */
.gp-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 0 0 12px; }
.gp-row button { background: var(--bg2); border: 1px solid var(--border); color: var(--text); border-radius: 9px;
  padding: 10px 4px; font: 800 12.5px/1.2 inherit; font-family: inherit; cursor: pointer; }
.gp-row button[hidden] { display: none; }
.gp-row button.on { border-color: var(--gold); color: var(--gold-lt); }
.gp-panel { margin: 0 0 14px; }
/* hidden="until-found" stays content-visibility hidden where supported, so
   find-in-page can open it; a plain hidden is display none. */
.gp-panel[hidden]:not([hidden="until-found"]) { display: none; }
.gp-panel.copy > p { max-width: none; }
.gp-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gp-tbl td { white-space: nowrap; }
.gp-tbl td.best { color: var(--gold-lt); font-weight: 800; }
.gp-tbl td[data-leg-game] { cursor: pointer; }
.gp-tbl tr.ref td { color: var(--muted); }
.gp-tbl .bk { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.gp-tbl .book-chip-img { width: 18px; height: 18px; border-radius: 4px; display: block; }
.gp-tbl tbody.gp-rest[hidden] { display: none; }
.gp-more { background: none; border: 1px solid var(--border); color: var(--gold-lt); border-radius: 8px;
  padding: 7px 12px; font: 700 12.5px/1 inherit; font-family: inherit; margin: 8px 0 0; cursor: pointer; }
.gp-slot { display: inline-block; border: 1px dashed var(--border); color: var(--muted); border-radius: 6px;
  font-size: 10px; padding: 1px 5px; margin-left: 6px; }
.gp-ladder { overflow-x: auto; margin: 0 0 12px; }
.gp-ladder .gp-h3 { padding: 8px 16px 0; margin: 0; }
.gp-ladder .gp-more { margin: 8px 16px 10px; }
#gpBooks .onward-cta { margin-top: 12px; }
.gp-res { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; }
.gp-res span { background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
  font-size: 12.5px; font-weight: 700; }

/* About This Page, closed, at the bottom */
.gp-about { border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; margin: 18px 0; }
.gp-about > summary { cursor: pointer; font-weight: 800; font-size: 14px; padding: 12px 0; }
.gp-about > p { color: var(--muted); font-size: 13px; margin: 4px 0; }
.gp-searchtext { border-top: 1px solid var(--border); margin: 10px 0 12px; padding-top: 4px; }
.gp-searchtext .hdr-more { display: block; }
.gp-searchtext p, .gp-searchtext li { color: var(--muted); font-size: 13px; }
.gp-searchtext h2 { font-size: 15px; margin: 16px 0 6px; }
.gp-searchtext h3 { font-size: 13.5px; margin: 12px 0 4px; }

/* The full-screen chart: one centred block, every control the chart's width */
html.gp-lh-open, html.gp-lh-open body { overflow: hidden; }
.gp-lh { position: fixed; inset: 0; z-index: 2147483000; background: var(--bg); overflow-y: auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px)); }
.gp-lh[hidden] { display: none; }
.gp-lh-in { max-width: 960px; margin: 0 auto; }
.gp-lh-bar { display: flex; align-items: center; gap: 12px; }
.gp-lh-back { background: var(--bg2); border: 1px solid var(--gold); color: var(--gold); border-radius: 8px;
  padding: 8px 12px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; }
.gp-lh-ttl { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.gp-lh-tabs, .gp-lh-sides { display: flex; gap: 6px; margin: 10px 0 0; }
.gp-lh-tabs button, .gp-lh-sides button { flex: 1; background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 8px 6px; font-weight: 800; font-size: 13px; cursor: pointer;
  line-height: 1.25; font-family: inherit; }
.gp-lh-tabs button.on { background: var(--gold); border-color: var(--gold); color: #000; }
.gp-lh-sides button.on { border-color: var(--gold); color: var(--gold-lt); }
.gp-lh-now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 8px; align-items: end; }
.gp-lh-now .v { font-size: 24px; font-weight: 800; line-height: 1.1; }
.gp-lh-now .v.sm { font-size: 15px; }
.gp-lh-now .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.gp-lh-wrap { position: relative; touch-action: pan-y; }
.gp-lh-wrap svg { display: block; width: 100%; background: var(--bg2); border-radius: 10px; }
.gp-lh-tip { position: absolute; top: 6px; left: 56px; background: var(--bg2); color: var(--text); border: 1px solid var(--gold);
  border-radius: 7px; padding: 6px 10px; font-size: 12px; pointer-events: none; max-width: 80%; }
.gp-lh-tip .tt { color: var(--muted); margin-bottom: 2px; }
.gp-lh-tip span, .gp-lh-legend span { display: inline-flex; align-items: center; gap: 2px; margin-right: 12px; white-space: nowrap; }
.gp-lh-legend { font-size: 12px; color: var(--muted); margin: 8px 0 10px; display: flex; flex-wrap: wrap; row-gap: 4px; }
.gp-lh-legend b { color: var(--text); margin-left: 3px; }
.gp-lh-cmph { font-weight: 800; font-size: 14px; margin: 6px 0; }
.gp-lh-books { display: flex; flex-wrap: wrap; gap: 6px; }
.gp-cb { display: inline-flex; align-items: center; gap: 5px; background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); border-radius: 999px; padding: 5px 10px 5px 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.gp-cb img { width: 16px; height: 16px; border-radius: 4px; }
.gp-cb.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.gp-cb.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.gp-cb.na { opacity: .45; cursor: default; }
.gp-cb i { font-style: normal; color: var(--muted); font-weight: 600; }
.gp-fold { border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; margin-top: 12px; }
.gp-fold > summary { cursor: pointer; font-weight: 800; font-size: 14px; padding: 11px 0; }

/* Desktop: the card, tables and chart fill the page's content width */
@media (min-width: 900px) {
  .gp-card .gc-markets { grid-template-columns: minmax(110px, 200px) repeat(3, minmax(90px, 1fr)); }
  .gp-card .gc-markets.gp-ml-only { grid-template-columns: minmax(110px, 200px) minmax(90px, 1fr); }
  .gp-chartbtn svg { aspect-ratio: 720 / 170; }
  .gp-row { max-width: 640px; }
}

/* The store badges, at the bottom (342 checklist: kept). A page that carries
   them is skipped by the header badge script, so the title stays one line
   above the card. Website only. */
.gp-badges { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 22px 0 6px; }
.gp-badges img { height: 40px; width: auto; display: block; }
.gp-badges .gp-play img { height: 58px; margin: -9px 0; }
/* A closed section takes no room (content-visibility keeps its own box). */
.gp-panel[hidden] { margin: 0 !important; padding: 0 !important; border: 0 !important; }
/* A section opened from the card lands below the sticky header. */
.gp-panel, #gpChart { scroll-margin-top: 76px; }
.gp-tapbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.gp-refnote { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
