/* ============================================================
   /{lang}/docs/game-sdk/register (pages/game-portal/game-portal-shared.mjs).
   Sits on bot-portal.css (bp-* inputs, gate, account chip, token box)
   and adds the wider page, the game cards and the review queue.
   ============================================================ */

.gp-inner { max-width: 760px; margin: 0 auto; }
.gp [hidden] { display: none !important; }

.gp-head { margin-bottom: 26px; }
.gp-eyebrow { display: inline-block; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--green-700); margin-bottom: 10px; }
.gp-head h1 { font-size: clamp(32px, 5vw, 46px) !important; line-height: 1.06 !important; letter-spacing: -.02em; margin: 0 0 14px; color: var(--w-ink); }
.gp-lead { font-size: 17px; line-height: 1.65; color: var(--w-mut); margin: 0 0 22px; max-width: 640px; }

.gp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gp-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .55); border: 1px solid var(--w-line); }
.gp-steps strong { display: block; font-size: 15px; color: var(--w-ink); margin: 2px 0 4px; }
.gp-steps p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--w-mut); }
.gp-step-num { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; }

.gp-gate { max-width: 480px; margin: 0 auto; }
.gp-gate h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; color: var(--w-ink); }

.gp-account { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.gp-account-label { font-size: 13px; font-weight: 600; color: var(--w-mut); }
.gp-account .bp-account { margin: 0; }

.gp-block { margin-bottom: 30px; }
.gp-block-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.gp-block-head h2 { font-size: 22px; margin: 0; color: var(--w-ink); }
.gp-muted { margin: 4px 0 0; font-size: 13.5px; color: var(--w-mut); }
.gp-empty { margin: 0; padding: 22px; text-align: center; border: 1px dashed var(--w-line); border-radius: 16px; color: var(--w-mut); font-size: 14.5px; }
.gp-sent { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 13px 16px; border-radius: 14px; background: rgba(51, 117, 77, .1); border: 1px solid rgba(51, 117, 77, .25); color: var(--green-700); font-size: 14.5px; font-weight: 600; }

.gp-games { display: grid; gap: 12px; }
.glass-tile.gp-game { padding: 18px 20px; }
.gp-game-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gp-game-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--w-float); color: var(--w-mut); font-size: 20px; border: 1px solid var(--w-line); }
.gp-game-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-game-info { min-width: 0; flex: 1 1 auto; }
.gp-game-info h3 { margin: 0 0 2px; font-size: 17px; color: var(--w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-game-info code { font-size: 12.5px; color: var(--w-mut); overflow-wrap: anywhere; }

.gp-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 980px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.gp-status.is-pending { background: #fbf0d6; color: #7a4f00; }
.gp-status.is-changes_requested { background: #fde7d6; color: #8f3d00; }
.gp-status.is-approved { background: rgba(51, 117, 77, .14); color: #1f5c36; }
.gp-status.is-rejected { background: #fbe3e1; color: #a1241b; }

.gp-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 14px 0 0; font-size: 13.5px; }
.gp-meta div { min-width: 0; }
.gp-meta dt { font-weight: 600; color: var(--w-mut); font-size: 12px; margin-bottom: 2px; }
.gp-meta dd { margin: 0; color: var(--w-ink2); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.gp-meta dd a { color: var(--green-700); text-decoration: underline; font-family: inherit; }

.gp-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--w-float); font-size: 14px; }
.gp-note strong { display: block; font-size: 12.5px; color: var(--w-mut); margin-bottom: 4px; }
.gp-note p { margin: 0; color: var(--w-ink); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }

.gp-game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.gp-game-actions:not(:has(> :not([hidden]))) { display: none; }
.gp-game-actions .btn-f i { margin-right: 6px; }
.gp-key-issued { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-700); }
.gp-key { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--w-line); }
.gp-key > strong { display: block; font-size: 15px; color: var(--w-ink); margin-bottom: 4px; }
.gp-key > p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--w-mut); }
.gp-key .bp-token { margin: 0; }

/* ---- form ---- */
.gp-form-card { margin-bottom: 30px; }
.gp-form-card h2 { font-size: 22px; margin: 0 0 18px; color: var(--w-ink); }
.gp-field { margin: 0 0 16px; min-width: 0; }
.gp-field .bp-input-wrap { margin-bottom: 6px; }
.gp-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--w-mut); }
.gp-hint code { font-size: 12px; }
.gp-optional { font-weight: 500; color: var(--w-mut); }
.gp-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14.5px; }
.gp-area-wrap { align-items: flex-start; }
.gp-area-wrap > i { padding-top: 16px; }
.gp-area-wrap textarea { resize: vertical; min-height: 64px; line-height: 1.45; }
.gp-area-wrap textarea:not(.gp-mono) { padding-left: 16px; }
.gp-field.is-invalid .bp-input-wrap { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }

.gp-icon-row { display: flex; align-items: center; gap: 12px; }
.gp-icon-row .bp-input-wrap { flex: 1 1 auto; min-width: 0; }
.gp-icon-preview { flex: 0 0 52px; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--w-float); color: var(--w-mut); font-size: 20px; border: 1px solid var(--w-line); }
.gp-icon-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gp-scopes { border: 0; padding: 0; }
.gp-scope { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--w-line); background: rgba(255, 255, 255, .5); cursor: pointer; }
.gp-scope:has(input:checked) { border-color: rgba(51, 117, 77, .45); background: rgba(51, 117, 77, .07); }
.gp-scope input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: 0 0 auto; }
.gp-scope strong { display: block; font-size: 14.5px; color: var(--w-ink); }
.gp-scope small { display: block; font-size: 13px; line-height: 1.45; color: var(--w-mut); margin: 2px 0 4px; }
.gp-scope code { font-size: 11.5px; color: var(--w-mut); }

.gp-rules { margin: 6px 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--w-float); }
.gp-rules h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; color: var(--w-ink); }
.gp-rules h3 i { color: var(--green-600); }
.gp-rules ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--w-ink2); }
.gp-rules + .bp-check a { text-decoration: underline; }
.gp-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- review queue ---- */
.gp-review .gp-review-item.is-target { box-shadow: 0 0 0 3px var(--w-glow), 0 10px 30px rgba(31, 35, 33, .12); }
.gp-review-item .bp-label { margin-top: 14px; }
.gp-filter { display: inline-flex; padding: 3px; border-radius: 980px; background: var(--w-float); border: 1px solid var(--w-line); }
.gp-filter button { border: 0; background: none; padding: 6px 14px; border-radius: 980px; font: inherit; font-size: 13px; font-weight: 600; color: var(--w-mut); cursor: pointer; }
.gp-filter button[aria-pressed="true"] { background: #fff; color: var(--w-ink); box-shadow: 0 1px 4px rgba(31, 35, 33, .12); }

@media (max-width: 760px) {
  .gp-steps { grid-template-columns: 1fr; }
  .gp-meta { grid-template-columns: 1fr; }
  .gp-game-main { flex-wrap: wrap; }
  .gp-status { order: 3; }
  .glass-tile.gp-game { padding: 16px; }
}
