/* Football Grid Expert: additions on top of football-grid-v2.css. Scoped to body.fgx-page / .fgx-*. */
body.fgx-page .fgx-checking, body.fgx-page .fgx-gate, body.fgx-page .fgx-back {
  --panel: #0e1526; --panel2: #131c33; --line: rgba(255, 255, 255, 0.1);
  --acc: #ff7a2e; --txt: #f3f5fa; --dim: #9aa6bd;
}
.fgx-checking[hidden], .fgx-gate[hidden], .fgx-offline[hidden] { display: none !important; }
.fgx-checking { max-width: 460px; margin: 40px auto; text-align: center; color: var(--dim); font-size: 14px; }
.fgx-checking .fg-btn { padding: 8px 14px; font-size: 13px; }

.fgx-tag { font-family: var(--font-body, Inter, sans-serif); font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #0a0a0a; background: #a05cf0; border-radius: 6px; padding: 3px 7px; vertical-align: 5px; margin-left: 4px; }

/* Points pill on a tile / in messages. Colours match the share picture and the emoji row. */
.fgx-pts { display: inline-block; font-weight: 900; font-size: 11px; line-height: 1; border-radius: 8px; padding: 3px 6px; color: #0a0a0a; background: #38c977; }
.fg-tile .fgx-pts { position: absolute; top: 4px; right: 5px; }
.fg-tile.correct { padding-top: 10px; }
.fgx-pts.t1, .fgx-pts.t2 { background: #38c977; }
.fgx-pts.t3, .fgx-pts.t4 { background: #e8c53a; }
.fgx-pts.t6 { background: #f08a2e; }
.fgx-pts.t8 { background: #a05cf0; color: #fff; }
.fgx-pts.tu { background: #7e8aa6; }
.fg-tile.correct:has(.t8) { border-color: #a05cf0; background: rgba(160, 92, 240, .16); }
.fg-tile.correct:has(.t6) { border-color: #f08a2e; background: rgba(240, 138, 46, .14); }
.fg-tile.correct:has(.t3), .fg-tile.correct:has(.t4) { border-color: #e8c53a; background: rgba(232, 197, 58, .12); }

/* Points table on the start card */
.fgx-scale { margin: 16px 0 0; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.fgx-scale-t { font-size: 12.5px; color: var(--txt); line-height: 1.35; margin-bottom: 10px; }
.fgx-scale ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fgx-scale li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--dim); }
.fgx-scale li i { font-style: normal; font-weight: 700; }
.fgx-scale-n { font-size: 11.5px; color: var(--dim); line-height: 1.4; margin-top: 10px; }
.fgx-emoji-key { font-size: 11.5px; color: var(--dim); margin-top: 6px; }

/* The members-only door */
.fgx-gate { max-width: 460px; margin: 10px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px 18px 20px; text-align: center; color: var(--txt); }
.fgx-gate-badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .22em; color: #0a0a0a; background: #a05cf0; border-radius: 999px; padding: 4px 12px; }
.fgx-gate h2 { font-family: var(--font-display, 'Jersey 15', sans-serif); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 12px 0 8px; }
.fgx-gate-lead { font-size: 14px; line-height: 1.5; color: var(--dim); margin: 0 0 14px; }
.fgx-gate-lead b { color: var(--txt); }
.fgx-gate-list { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.fgx-gate-list li { font-size: 13px; color: var(--dim); line-height: 1.4; padding-left: 22px; position: relative; }
.fgx-gate-list li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: #38c977; font-weight: 900; }
.fgx-gate-list b { color: var(--txt); }
.fgx-cta { display: block; width: 100%; box-sizing: border-box; font-size: 16px; padding: 15px; text-decoration: none; background: var(--acc); color: #0a0a0a; border-radius: 10px; font-weight: 800; }
.fgx-signin { display: block; margin-top: 14px; font-size: 13.5px; color: #ffd2b5; font-weight: 700; }
.fgx-offline { margin: 14px 0 0; font-size: 12.5px; color: #f4a0a3; }
.fgx-offline .fg-btn { padding: 6px 12px; font-size: 12px; margin-left: 6px; }
.fgx-gate-alt { margin: 16px 0 0; font-size: 12.5px; }
.fgx-gate-alt a, .fgx-back a { color: var(--dim); text-decoration: underline; }
.fgx-back { text-align: center; font-size: 12.5px; margin: 6px 0 26px; }
