/* ==========================================================================
   IBplay - game landing pages (game.php)
   --------------------------------------------------------------------------
   Page-specific layout only. Colours, cards, buttons, FAQ, flags, the closing CTA and the light/dark
   themes all come from site-common.css + site-home.css (loaded before this file); everything here uses
   those same tokens, so a game page flips with the theme exactly like the homepage.
   ========================================================================== */

.gp { display: block; }

/* ---------- hero ---------- */
.gp-hero { padding: 48px 0 76px; }
.gp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; align-items: center; }
.gp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 13.5px; color: var(--ib-text-dim); }
.gp-crumbs a { transition: color .2s; }
.gp-crumbs a:hover { color: var(--ib-blue); }
.gp-crumbs b { font-weight: 600; color: var(--ink); }
.gp-crumbs span { opacity: .5; }
.gp-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--fill-1); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gp-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ib-blue); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .2); }
.gp-hero h1 { margin: 20px 0 18px; font-family: var(--ib-display); font-size: clamp(36px, 4.7vw, 62px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
.gp-hero h1 em { display: block; font-style: normal; color: var(--ib-blue); }
.gp-lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.65; color: var(--ib-text-dim); }
.gp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.gp-price-note { margin: 0; font-size: 14px; color: var(--ib-text-dim); }
.gp-price-note b { color: var(--ink); font-size: 15px; }
.gp-price-note span { margin: 0 12px; opacity: .5; }
.gp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 38px 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule); }
.gp-facts > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.gp-facts dt { font-size: 13px; color: var(--ib-text-dim); }
.gp-facts dd { margin: 0; font-family: var(--ib-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1; color: var(--ink); }

.gp-art { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 28px; border: 1px solid var(--rule-strong); border-bottom: 3px solid var(--accent, var(--ib-blue));
  background: var(--panel); box-shadow: 0 40px 80px -44px rgba(0,0,0,.65); }
.gp-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.gp-chip { position: absolute; top: 16px; padding: 6px 13px; border-radius: 999px; font-family: var(--ib-mono); font-size: 12px; font-weight: 700; color: #fff; background: rgba(8,12,20,.66); border: 1px solid rgba(255,255,255,.2); }
.gp-chip-0 { left: 16px; } .gp-chip-1 { right: 16px; }
.gp-art-price { position: absolute; left: 16px; bottom: 18px; display: flex; flex-direction: column; padding: 11px 18px; border-radius: 16px; color: #fff; background: rgba(8,12,20,.74); border: 1px solid rgba(255,255,255,.16); }
.gp-art-price small { font-size: 12px; color: rgba(255,255,255,.72); }
.gp-art-price b { font-family: var(--ib-display); font-size: 26px; line-height: 1.1; }
.gp-art-price b span { margin-left: 3px; font-family: var(--ib-body); font-size: 13px; font-weight: 500; color: rgba(255,255,255,.72); }

/* ---------- features: one joined table of cells ---------- */
.gp-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--rule-strong); border-radius: 22px; background: var(--rule-strong); }
.gp-cell { padding: 32px 30px 34px; background: var(--panel); }
.gp-cell .ib-why-ic { margin-bottom: 20px; }
.gp-cell h3 { margin: 0 0 8px; font-family: var(--ib-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.gp-cell p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ib-text-dim); }



/* ---------- specifications table ---------- */
.gp-tablewrap { overflow: hidden; border: 1px solid var(--rule-strong); border-radius: 22px; background: var(--panel); }
.gp-table { width: 100%; border-collapse: collapse; text-align: left; }
.gp-table caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gp-table tr + tr { border-top: 1px solid var(--rule); }
.gp-table tr:nth-child(odd) { background: var(--fill-1); }
.gp-table th, .gp-table td { padding: 17px 28px; vertical-align: top; font-size: 15px; line-height: 1.5; }
.gp-table th { width: 30%; font-family: var(--ib-display); font-weight: 600; color: var(--ink); }
.gp-table td { color: var(--ink-2); }

/* ---------- locations ---------- */
.gp-locs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.gp-locs li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--panel); transition: border-color .25s, transform .25s var(--ib-ease); }
.gp-locs li:hover { border-color: rgba(var(--acc-rgb), .45); transform: translateY(-3px); }
.gp-locs b { display: block; font-family: var(--ib-display); font-size: 17px; color: var(--ink); }
.gp-locs small { font-size: 13px; color: var(--ib-text-dim); }
.gp-locs em { grid-column: 1 / -1; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); font-style: normal; font-family: var(--ib-mono); font-size: 14px; font-weight: 700; color: var(--ib-online); }

/* ---------- game modes ---------- */
.gp-modes { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gp-modes li { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--fill-1); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: border-color .25s, color .25s, transform .25s var(--ib-ease); }
.gp-modes li:hover { border-color: var(--ib-blue); color: var(--ink); transform: translateY(-2px); }

/* ---------- steps ---------- */
.gp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gp-steps li { padding: 28px 26px 30px; border: 1px solid var(--rule); border-radius: 20px; background: var(--panel); }
.gp-step-no { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border-radius: 50%; background: rgba(var(--acc-rgb), .14); border: 1px solid rgba(var(--acc-rgb), .4); color: var(--ib-blue); font-family: var(--ib-mono); font-size: 15px; font-weight: 700; }
.gp-steps h3 { margin: 0 0 8px; font-family: var(--ib-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.gp-steps p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ib-text-dim); }

/* ---------- review ---------- */
.gp-quote { margin: 0 auto; max-width: 820px; text-align: center; }
.gp-quote .stars { margin-bottom: 18px; font-size: 16px; letter-spacing: 5px; color: #f5b400; }
.gp-quote blockquote { margin: 0 0 24px; font-family: var(--ib-display); font-size: clamp(21px, 2.3vw, 29px); font-weight: 500; line-height: 1.4; color: var(--ink); }
.gp-quote figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ib-text-dim); }
.gp-quote figcaption strong { font-size: 15px; color: var(--ink); }

/* ---------- other games ---------- */
.ib-sec.gp-more > .ib-container { padding-top: 24px; padding-bottom: 24px; }
.gp-more-title { margin: 0 0 20px; font-family: var(--ib-display); font-size: 22px; font-weight: 700; color: var(--ink); }
.gp-more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.gp-more-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border: 1px solid var(--rule); border-radius: 16px; background: var(--panel); transition: border-color .25s, transform .25s var(--ib-ease), box-shadow .25s; }
.gp-more-item:hover { border-color: var(--accent, var(--ib-blue)); transform: translateY(-3px); box-shadow: inset 3px 0 0 var(--accent, var(--ib-blue)); }
.gp-more-item img { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; }
.gp-more-item span { flex: 1; min-width: 0; }
.gp-more-item b { display: block; font-family: var(--ib-display); font-size: 16px; color: var(--ink); }
.gp-more-item small { font-size: 13px; color: var(--ib-text-dim); }
.gp-more-item svg { width: 16px; height: 16px; flex: none; color: var(--ib-text-dim); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
}
@media (max-width: 1020px) {
  .gp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .gp-art { margin: 0 auto; max-width: 400px; }
  .gp-cells { grid-template-columns: repeat(2, 1fr); }
  .gp-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .gp-hero { padding: 28px 0 56px; }
  .gp-facts { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .gp-cells, .gp-steps { grid-template-columns: 1fr; }
  .gp-table th, .gp-table td { display: block; width: auto; padding: 4px 20px; }
  .gp-table th { padding-top: 16px; } .gp-table td { padding-bottom: 16px; }
  .gp-price-note span { margin: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .gp-locs li, .gp-modes li, .gp-more-item { transition: none; } }

/* ---------- typographic hero art (game without a picture yet) ---------- */
.gp-art--type .ib-gtype--lg { position: absolute; inset: 0; }

/* ---------- builds switch (e.g. CS:S Steam / ClientMod). Without JS every panel is visible. ---------- */
.gp-variants { padding: 8px; border: 1px solid var(--rule-strong); border-radius: 22px; background: var(--panel); }
.gp-vtabs { display: flex; gap: 6px; padding: 6px; }
.gp-vtab { flex: 1; padding: 14px 18px; border: 0; border-radius: 14px; background: transparent; color: var(--ink-2); font: 600 15px var(--ib-display); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.gp-vtab:hover { color: var(--ink); }
.gp-vtab[aria-selected="true"] { color: var(--ink); background: rgba(var(--acc-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .5); }
.gp-vtab:focus-visible { outline: 2px solid var(--ib-blue); outline-offset: 2px; }
.gp-vpanel { padding: 26px 28px 30px; }
.ib-js .gp-vpanel[hidden] { display: none; }
.gp-vpanel + .gp-vpanel { border-top: 1px solid var(--rule); }
.ib-js .gp-vpanel + .gp-vpanel { border-top: 0; }
.gp-vtag { display: inline-block; margin-bottom: 14px; padding: 4px 11px; border-radius: 999px; font: 700 11.5px var(--ib-mono); letter-spacing: .4px; color: var(--ib-blue); background: rgba(var(--acc-rgb), .12); }
.gp-vpanel h3 { margin: 0 0 8px; font-family: var(--ib-display); font-size: 24px; color: var(--ink); }
.gp-vpanel p { margin: 0 0 18px; max-width: 640px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.gp-vpanel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.gp-vpanel li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); }
.gp-vpanel li svg { width: 15px; height: 15px; margin-top: 4px; color: var(--ib-online); flex: none; }
.gp-compare { margin-top: 24px; }
.gp-compare .gp-table thead th { font: 700 12.5px var(--ib-mono); letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); padding-block: 14px; }
.gp-compare .gp-table td { width: 35%; }

/* ---------- "launching soon" panel (replaces the plans while a game is not on sale) ---------- */
.gp-soon { max-width: 780px; margin: 0 auto; padding: 40px 36px; text-align: center; border: 1px dashed var(--rule-strong); border-radius: 22px; background: var(--panel); }
.gp-soon p { margin: 0 auto 26px; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.gp-soon-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 760px) { .gp-vpanel ul { grid-template-columns: 1fr; } .gp-vpanel { padding: 22px 20px 24px; } .gp-soon { padding: 30px 22px; } .gp-vtab { padding: 12px 10px; font-size: 14px; } }
