/* Game product page (/games/<slug>): product header, numbered order builder
   with a sticky summary, then about + FAQ. Shared bits live in site.css. */
.muted { color: var(--muted); }

/* product header */
.gp-hero { position: relative; overflow: hidden; isolation: isolate; padding: 22px 0 60px; }
.gp-hero-bg { position: absolute; inset: 0; z-index: -2; background: center 30% / cover no-repeat; opacity: .55; filter: saturate(1.05); }
.gp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(21,21,28,.96) 0%, rgba(21,21,28,.85) 45%, rgba(21,21,28,.55) 100%),
  linear-gradient(180deg, rgba(21,21,28,.3) 0%, rgba(21,21,28,0) 40%, var(--bg) 100%); }
.crumbs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 17px; color: var(--text-2); margin-bottom: 42px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs b { color: #fff; font-weight: 500; }
.crumbs span { color: var(--muted); }
.gp-head { display: flex; gap: 64px; align-items: flex-start; }
.gp-cover-wrap { flex: none; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gp-cover { width: 230px; height: 345px; object-fit: cover; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.6); background: var(--card); }
.gp-steam { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.gp-steam:hover { color: var(--yellow); }
.gp-intro { padding-top: 6px; min-width: 0; }
.gp-intro h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; color: #fff; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(40,40,54,.85); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 700 14px/1 var(--head); color: #fff; }
.gp-desc { font-size: 21px; color: var(--text-2); max-width: 880px; margin: 0 0 30px; }
.gp-ctas { display: flex; gap: 22px; flex-wrap: wrap; }
.gp-ctas .btn { text-transform: none; font-size: 17px; padding: 17px 18px; }

/* order builder */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; padding-bottom: 80px; }
.order-steps { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 34px 32px; }
.step + .step { margin-top: 46px; }
.step-h { display: flex; align-items: center; gap: 16px; font: 500 26px/1.2 var(--head); color: #fff; margin-bottom: 24px; }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #6b5612; color: #fff1b8; display: flex; align-items: center; justify-content: center; font: 600 20px/1 var(--head); }
.step-note { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }
.step-note a { color: var(--text-2); }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.plan { position: relative; display: flex; flex-direction: column; justify-content: flex-start; text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 22px 18px 18px; cursor: pointer; color: inherit; font: inherit; transition: border-color .15s, transform .15s; overflow: hidden; }
.plan:hover { border-color: #4a4a5e; transform: translateY(-2px); }
.plan.is-on { border-color: var(--yellow); background: #2a2616; }
.plan-name { font: 700 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.plan-badge { position: absolute; top: 16px; right: 14px; background: #3b1620; color: #ff5d7a; font: 800 11px/1 var(--body); letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; }
.plan-price { font: 800 34px/1 var(--head); color: var(--yellow); margin: 16px 0 16px; }
.plan-price small { font: 500 16px/1 var(--body); color: var(--text-2); }
.plan-specs { display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14.5px; color: var(--text); }
.plan-specs span { display: inline-flex; align-items: center; gap: 6px; }
.plan-specs svg { color: var(--yellow); flex: none; }

.opt-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.loc, .opt { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: var(--card-2); border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer; overflow: hidden; }
.loc input, .opt input { position: absolute; opacity: 0; pointer-events: none; }
.loc.is-on, .opt.is-on { border-color: var(--yellow); }
.loc-flag { position: absolute; inset: 0 0 0 auto; width: 45%; opacity: .14; pointer-events: none;
  background: repeating-linear-gradient(180deg, #b22234 0 8%, #fff 8% 15.4%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.loc-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; color: #fff; position: relative; }
.loc-sub { grid-column: 1; color: var(--text-2); font-size: 14.5px; position: relative; }
.tag-rec { background: var(--yellow); color: #17130a; font: 800 10.5px/1 var(--body); letter-spacing: .06em; padding: 4px 7px; border-radius: 5px; }
.radio { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #5a5a70; position: relative; }
.is-on .radio { border-color: var(--yellow); }
.is-on .radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--yellow); }
.opt { grid-template-columns: 1fr auto; font-size: 17px; color: var(--text); }
.opt .radio { grid-row: 1; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; color: #fff; }
.field { width: 100%; background: var(--bg-2); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; color: #fff; font: inherit; font-size: 17px; }
.field:focus { outline: none; border-color: var(--yellow); }

/* summary */
.order-side { position: sticky; top: 96px; display: grid; gap: 22px; }
.summary, .included { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; }
.summary h3 { text-align: center; font: 600 26px/1.2 var(--head); color: #fff; margin-bottom: 22px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--text-2); }
.sum-row b { color: #fff; font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: flex-end; margin: 26px 0 18px; }
.sum-total span { display: block; font: 700 21px/1 var(--head); color: #fff; }
.sum-total small { display: block; margin-top: 8px; font: 700 12px/1 var(--body); letter-spacing: .16em; color: var(--text-2); }
.sum-total b { font: 800 22px/1 var(--head); color: var(--yellow); }
.sum-balance { font-size: 14px; color: var(--text-2); margin: -6px 0 14px; }
.sum-balance a { color: var(--yellow); }
.btn-block { width: 100%; }
.btn-block:disabled { background: #4a4a58; color: #c8c8d6; box-shadow: 0 5px 0 #33333f; cursor: not-allowed; }
.sum-msg { margin: 14px 0 0; font-size: 14.5px; }
.sum-msg.err { color: #f87171; } .sum-msg.ok { color: var(--ok); }
.sum-msg a { color: inherit; font-weight: 700; }
.included h4 { font: 700 18px/1 var(--head); color: #fff; margin-bottom: 18px; }
.included ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.included li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--text); }
.included li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18' fill='none' stroke='%2322c55e' stroke-width='4'%3E%3Cpath d='M2 9l7 7L22 2'/%3E%3C/svg%3E") center / contain no-repeat; }

/* about */
.gp-about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.gp-features { margin-top: 26px; }
.gp-features li { font-size: 18px; margin-bottom: 4px; }
.gp-about-art { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.45); aspect-ratio: 16 / 9; object-fit: cover; }

/* step 4: the egg's own settings */
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px 18px; }
.gs-f { min-width: 0; }
.gs-f .field { font-size: 16px; padding: 12px 14px; }
.gs-f select.field { appearance: none; cursor: pointer; padding-right: 40px;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23aaa' stroke-width='2'/%3E%3C/svg%3E") right 15px center no-repeat; }
.gs-f.is-bad .field, .gs-f.is-bad .gs-toggle { border-color: #ff5d7a; }
.gs-help { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 7px 0 0; overflow-wrap: anywhere; }
.gs-req { color: var(--yellow); margin-left: 4px; }
.gs-toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-2); border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; color: #fff; font-weight: 600; }
.gs-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.gs-switch { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .15s; }
.gs-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.gs-toggle input:checked + .gs-switch { background: var(--yellow); }
.gs-toggle input:checked + .gs-switch::after { transform: translateX(18px); background: #17130a; }
.gs-toggle input:focus-visible + .gs-switch { outline: 2px solid var(--yellow); outline-offset: 2px; }
.gs-more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.gs-more summary { cursor: pointer; font: 600 17px/1.2 var(--head); color: #fff; }
.gs-more summary span { color: var(--muted); font-weight: 500; }
.gs-more[open] summary { margin-bottom: 18px; }

@media (max-width: 1100px) {
  .order { grid-template-columns: 1fr; }
  .order-side { position: static; }
}
@media (max-width: 760px) {
  .crumbs { font-size: 14.5px; margin-bottom: 26px; }
  .gp-head { flex-direction: column; gap: 26px; }
  .gp-cover-wrap { flex-direction: row; align-items: flex-end; }
  .gp-cover { width: 130px; height: 195px; }
  .gp-desc { font-size: 17.5px; }
  .gp-ctas .btn { width: 100%; }
  .order-steps { padding: 24px 16px; }
  .step-h { font-size: 22px; }
  .locs { grid-template-columns: 1fr; }
  .gp-about { grid-template-columns: 1fr; }
}

/* /games list */
.gl-title { font-size: clamp(36px, 5vw, 64px); font-weight: 900; color: #fff; margin-bottom: 20px; }
.gl-wrap { padding-bottom: 90px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.gl-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .15s, border-color .15s; }
.gl-card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.gl-art { display: block; aspect-ratio: 616 / 353; background: #111 center / cover no-repeat; }
.gl-body { display: block; padding: 18px 20px 20px; }
.gl-body b { display: block; font: 700 21px/1.2 var(--head); color: #fff; }
.gl-body span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15.5px; }
[hidden] { display: none !important; }

/* step 4: extras */
.ex-box { display: grid; gap: 12px; }
.ex-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--card-2); border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.ex-text { display: grid; gap: 4px; min-width: 0; flex: 1 1 220px; }
.ex-text b { color: #fff; font-size: 17px; }
.ex-sub { color: var(--text-2); font-size: 14px; }
.ex-step { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border: 2px solid var(--line); border-radius: 10px; padding: 4px; }
.ex-btn { width: 38px; height: 38px; border: 0; border-radius: 8px; background: var(--card); color: #fff; font: 700 20px/1 var(--body); cursor: pointer; }
.ex-btn:hover:not(:disabled) { background: var(--yellow); color: #17130a; }
.ex-btn:disabled { opacity: .35; cursor: default; }
.ex-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.ex-val { min-width: 64px; text-align: center; font: 700 17px/1 var(--head); color: #fff; }
