/* ==========================================================================
   Play: Find a Game, Challenges, Requests / Upcoming fixture cards and the prediction card.
   Moved out of app.css unchanged (docs/architecture/PARALLEL_DEVELOPMENT_SPLIT.md).
   ========================================================================== */

  /* Play / Find Game -- compact "match brief" controls, distinct from the
     .fg-controls used on Wishlist/Summary (left untouched). Same underlying
     inputs and ids, just a tighter layout so the controls read as a brief
     rather than the dominant feature of the screen. */
  .play-brief{
    background:var(--surface-1); border:1px solid var(--surface-border); border-radius:var(--radius-md);
    padding:12px 14px; margin:10px 0 16px;
    font-family:'Helvetica Neue', Arial, sans-serif;
  }
  .play-brief-eyebrow{
    font-family:'Helvetica Neue', Arial, sans-serif; font-size:9.5px; font-weight:700;
    letter-spacing:.08em; text-transform:uppercase; color:var(--text-dim); opacity:.75; margin-bottom:8px;
  }
  .play-brief-row{ margin-bottom:8px; }
  .play-brief-row:last-child{ margin-bottom:0; }
  .play-brief .fg-label{ font-size:10px; margin-bottom:4px; }
  .play-brief .fg-select{ padding:7px 9px; font-size:13px; }
  .play-brief .fg-toggle-btn{ font-size:12px; padding:7px 4px; white-space:nowrap; }
  .play-brief-toggle{
    display:block; width:100%; text-align:left; background:transparent; border:none; padding:6px 0 0;
    margin-top:4px; color:var(--gold-soft); font-family:'Helvetica Neue', Arial, sans-serif; font-size:11.5px; font-weight:600; cursor:pointer;
  }

  .fg-result-card{
    background:var(--bg1); border:1px solid var(--line); border-radius:10px;
    padding:12px; margin-bottom:9px;
    font-family:'Helvetica Neue', Arial, sans-serif;
  }
  .fg-result-rank{ font-size:10px; color:var(--text-dim); text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px; }
  .fg-result-teams{ font-size:13.5px; line-height:1.5; }
  .fg-result-teams b{ color:var(--gold-bright); }
  .fg-result-detail{ font-size:11px; color:var(--text-dim); margin-top:5px; line-height:1.5; }

/* ==========================================================================
   PLAY -- complete-match recommendation cards ("match room" presentation).
   Built entirely on top of the existing Find a Game engine -- these classes
   only change how the same computed numbers are laid out, never what's
   calculated. Distinct from Home: a tactical/prestige card, not an
   editorial one, and never shown outside the Play section.
   ========================================================================== */
.pm-best{
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
}
.pm-best-label{
  font-family: var(--font-interface); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-bright);
}
.pm-best-pct{
  font-family: var(--font-interface); font-weight: 700; font-size: 28px; color: var(--text);
  margin: 6px 0 0; letter-spacing: -0.01em; line-height: 1.1;
}
.pm-best-balance{
  font-family: var(--font-interface); font-size: 12px; color: var(--text-dim); margin-top: 3px;
}
.pm-teams{
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  margin: var(--space-4) 0;
}
.pm-team{ flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.pm-team-player{ display: flex; align-items: center; gap: 8px; min-width: 0; }
.pm-team-a .pm-team-player{ justify-content: flex-start; }
.pm-team-b .pm-team-player{ justify-content: flex-end; }
.pm-avatar{
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-interface); font-size: 10.5px; font-weight: 700; color: var(--text);
  flex-shrink: 0;
}
.pm-name{
  font-family: var(--font-prestige); font-size: 15px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.pm-vs{
  font-family: var(--font-interface); font-size: 10.5px; font-weight: 700; color: var(--text-dim);
  flex: 0 0 auto; padding: 0 2px;
}
.pm-why{
  font-family: var(--font-interface); font-size: 12.5px; color: var(--text); line-height: 1.5;
  padding-top: var(--space-3); border-top: 1px solid var(--surface-border-soft);
}
.pm-actions{ display: flex; gap: 8px; margin-top: var(--space-4); }
.pm-actions .mp-btn-primary, .pm-actions .mp-btn-secondary{ flex: 1; }
.pm-detail{ margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--surface-border-soft); }
.pm-detail-line{ font-family: var(--font-interface); font-size: 11.5px; color: var(--text-dim); margin-bottom: 5px; line-height: 1.5; }
.pm-detail-line:last-child{ margin-bottom: 0; }
.pm-detail-line b{ color: var(--text); }

.pm-alt-heading{
  font-family: var(--font-interface); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); margin: 4px 0 8px;
}
.pm-alt-card{
  background: var(--surface-1); border: 1px solid var(--surface-border); border-radius: var(--radius-md);
  padding: 12px 14px; margin-bottom: 8px;
}
.pm-alt-tag{
  font-family: var(--font-interface); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 2px;
}
.pm-alt-tagline{ font-family: var(--font-interface); font-size: 11px; color: var(--text-dim); margin-bottom: 9px; }
.pm-alt-teams{
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-interface); font-size: 12.5px; color: var(--text);
}
.pm-alt-teams span{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-alt-teams b{ color: var(--gold-bright); font-weight: 600; }
.pm-alt-vs{ color: var(--text-dim); font-size: 10.5px; font-weight: 700; flex: 0 0 auto; }
.pm-alt-pct{ font-family: var(--font-interface); font-size: 11px; color: var(--text-dim); margin-top: 7px; }
.pm-alt-cta-btn{
  display: block; margin-top: 9px; background: transparent; border: none; padding: 0;
  color: var(--gold-soft); font-family: var(--font-interface); font-size: 11.5px; font-weight: 600; cursor: pointer;
}

.pm-seeall-btn{
  display: block; width: 100%; text-align: center; background: transparent; border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm); color: var(--text-dim); font-family: var(--font-interface); font-size: 12px; font-weight: 600;
  padding: 10px 0; margin-top: 4px; cursor: pointer;
}
.pm-all-list{ margin-top: 8px; }
.pm-all-row{
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-family: var(--font-interface); font-size: 11.5px; color: var(--text-dim);
  padding: 9px 2px; border-bottom: 1px solid var(--surface-border-soft);
}
.pm-all-row span:first-child{ min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-all-row b{ color: var(--text); font-weight: 600; }
.pm-all-pct{ flex: 0 0 auto; }

@media (max-width: 360px){
  .pm-name{ font-size: 13.5px; }
  .pm-best-pct{ font-size: 24px; }
  .pm-avatar{ width: 26px; height: 26px; font-size: 9.5px; }

}

/* ==========================================================================
   CHALLENGE -- sporting call-out cards, distinct from ordinary request cards.
   A challenge is match construction with turn order, not a notification --
   restrained gold accent bar reads as "call-out", not admin-tool chrome.
   ========================================================================== */
.chl-create-toggle{
  display:block; width:100%; text-align:center;
  background:var(--gold-wash); border:1px solid var(--gold-hairline); border-radius:var(--radius-md);
  color:var(--gold-bright); font-family:'Helvetica Neue', Arial, sans-serif; font-size:13px; font-weight:700;
  padding:12px 0; margin-bottom:12px; cursor:pointer;
}
.chl-create-card{
  background:var(--surface-1); border:1px solid var(--surface-border); border-radius:var(--radius-md);
  padding:14px; margin-bottom:14px;
}
.chl-create-title{
  font-family:var(--font-prestige); font-size:16px; color:var(--text); margin-bottom:10px;
}
.chl-picker-row{ display:flex; gap:8px; }
.chl-picker-row > div{ flex:1; min-width:0; }

.chl-card{
  position:relative;
  background:var(--surface-1); border:1px solid var(--surface-border); border-radius:var(--radius-md);
  padding:14px 14px 14px 16px; margin-bottom:10px; overflow:hidden;
}
.chl-card::before{
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.chl-card.chl-muted::before{ background:var(--surface-border); }
.chl-card.chl-muted{ opacity:0.68; }
.chl-tag{
  font-family:'Helvetica Neue', Arial, sans-serif; font-size:9.5px; font-weight:700; letter-spacing:0.08em;
  text-transform:uppercase; color:var(--gold-soft);
}
.chl-matchup-line{
  font-family:var(--font-prestige); font-size:17px; color:var(--text); margin:4px 0 2px;
}
.chl-restriction-line{
  font-family:'Helvetica Neue', Arial, sans-serif; font-size:11.5px; color:var(--text-dim); line-height:1.5;
}
.chl-status-row{ display:flex; align-items:center; gap:8px; margin-top:8px; }
.chl-status-badge{
  font-family:'Helvetica Neue', Arial, sans-serif; font-size:10px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase;
  padding:3px 9px; border-radius:var(--radius-pill); border:1px solid var(--surface-border); color:var(--text-dim);
}
.chl-status-badge.chl-your-turn{ color:#1a1408; background:linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color:var(--gold); }
.chl-status-badge.chl-declined{ color:#e8a5a1; border-color:var(--red); }
.chl-status-badge.chl-cancelled{ color:var(--text-dim); }
.chl-pick-panel{ margin-top:10px; padding-top:10px; border-top:1px solid var(--surface-border-soft); }
.chl-pick-empty{ font-family:'Helvetica Neue', Arial, sans-serif; font-size:11.5px; color:var(--text-dim); }
.chl-actions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.chl-actions .mp-btn-primary{ flex:1 1 auto; min-width:120px; }
.chl-actions .mp-btn-secondary{ flex:1 1 auto; min-width:90px; }
.chl-link-btn{
  display:inline-block; margin-top:8px; background:transparent; border:none; padding:0;
  color:var(--text-dim); font-family:'Helvetica Neue', Arial, sans-serif; font-size:11px; font-weight:600; cursor:pointer; text-decoration:underline;
}
.chl-ready{ margin-top:6px; }

@media (max-width: 360px){
  .chl-matchup-line{ font-size:15.5px; }

}

/* ===================== Fixtures: Requests and Upcoming =====================
   An Upcoming fixture folds to one line to scan -- teams, when, where, how
   many are in -- and opens on its own. The whole folded card is the target. */
.fx-card{ padding: 0; overflow: hidden; }
.fx-card.fx-attn{ border-color: var(--gold-dim); }
.callout-card.fx-card:not(.fx-upcoming){ padding: 12px 14px; }
.fx-head{
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px;
  padding: 12px 14px; background: none; border: none; text-align: left; cursor: pointer;
  color: var(--text); font: inherit; -webkit-tap-highlight-color: transparent;
}
.fx-head:active{ background: var(--surface-2); }
.fx-head-text{ display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.fx-title{ font-family: var(--font-interface); font-weight: 700; font-size: 14px; line-height: 1.3; }
.fx-meta{ font-family: var(--font-interface); font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }
.fx-chev{ color: var(--gold-bright); font-size: 16px; flex: 0 0 auto; width: 16px; text-align: center; }
.fx-body{ padding: 2px 14px 14px; border-top: 1px solid var(--line); }
.fx-body .cc-title{ margin-top: 10px; }
.fx-vs{ color: var(--text-dim); font-weight: 400; }
.fx-tag{
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .03em;
  padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim);
  vertical-align: 1px;
}
.fx-tag-attn{ color: var(--gold-bright); border-color: var(--gold-dim); }
.fx-tag-past{ color: var(--text-dim); }
.fx-count{ font-family: var(--font-interface); font-size: 11.5px; font-weight: 700; margin-top: 6px; }
.fx-players{ margin-top: 8px; display: grid; gap: 4px; }
.fx-player{ font-size: 12.5px; }
.fx-player .request-player-link{ text-decoration: underline; cursor: pointer; }
.fx-player-state{ color: var(--text-dim); font-size: 11px; margin-left: 4px; }
.fx-player.fx-state-cant .fx-player-state{ color: var(--red); }
.fx-note{ font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.45; }
.fx-note-attn{ color: var(--gold-bright); }
.fx-actions{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.fx-actions:empty{ display: none; }
.fx-actions .preset-btn{ min-height: 40px; flex: 1 1 auto; }
.fx-in{ color: var(--green); border-color: var(--green); }
.fx-cant{ color: var(--red); border-color: var(--line); }
.fx-you{ font-size: 12px; font-weight: 700; color: var(--green); }
.fx-you-cant{ color: var(--red); }
.request-addresult-btn{ color: var(--green); border-color: var(--green); }
.fx-remove-arm{ margin-top: 10px; color: var(--text-dim); }
.fx-remove-confirm{
  margin-top: 10px; padding: 10px; border: 1px solid var(--gold-dim); border-radius: 10px;
  font-size: 12px; color: var(--text);
}
.fx-reconcile{
  margin-top: 10px; padding: 10px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--surface-border); font-size: 12px;
}
.fx-reconcile-q{ font-weight: 700; color: var(--gold-bright); margin-bottom: 6px; }
.fx-reconcile-label{
  font-family: var(--font-interface); font-size: 10px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-dim);
}
.fx-reconcile-row{ padding: 8px 0; border-top: 1px solid var(--line); }
.fx-reconcile-row:first-of-type{ border-top: none; }
.fx-reconcile-why{ color: var(--text-dim); font-size: 11px; margin: 3px 0 6px; }
.fx-reconcile .preset-btn{ min-height: 40px; width: 100%; margin-top: 4px; }
.fx-choice{ display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; line-height: 1.4; }
.fx-choice input{ margin-top: 3px; }
.fx-choice.is-chosen{ color: var(--text); }

/* Fixture follow-up: court booking, stages and Manage fixture. */
.fx-head .fx-meta + .fx-meta{ margin-top: -1px; }
.fx-court{ display: inline-block; margin-top: 8px; font-family: var(--font-interface); font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); }
.fx-court-yes{ color: var(--green); border-color: var(--green); }
.fx-manage-toggle{ margin-top: 10px; }
.fx-manage{ margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.fx-m-label{ display: block; font-family: var(--font-interface); font-size: 11px; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .04em; margin: 8px 0 4px; }
.fx-m-label:first-child{ margin-top: 0; }
.fx-m-seat-row{ display: flex; gap: 6px; margin-bottom: 6px; }
.fx-m-seat-row .fx-m-seat{ flex: 1 1 auto; min-width: 0; }
.fx-m-seat-row .fx-m-state{ flex: 0 0 118px; }
.fx-m-hint{ font-size: 11.5px; color: var(--gold-bright); margin: 2px 0 4px; }
.fx-m-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-m-field{ display: block; min-width: 0; }
.fx-m-field .fg-select{ width: 100%; box-sizing: border-box; }
.fx-m-booking{ display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; font-size: 13px; line-height: 1.35; }
.fx-m-booking input{ width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--gold-bright); }
.fx-m-sub{ font-size: 11.5px; color: var(--text-dim); }
.fx-m-danger{ margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.fx-review-row{ padding: 10px 0; border-top: 1px solid var(--line); }
.fx-review-row:first-of-type{ border-top: none; }
.fx-review-row .fx-meta{ display: block; margin-top: 2px; }

/* Fixture follow-up 2: My Requests, Add multiple games, archived call-outs. */
.fx-note-warn{ color: var(--gold-bright); }
.fx-m-archive{ margin-top: 12px; }
.fx-m-archive .preset-btn{ width: 100%; min-height: 40px; }
.fx-m-archive .fx-m-sub{ display: block; margin-top: 4px; }
.fx-bulk-text{ width: 100%; box-sizing: border-box; min-height: 150px; resize: vertical; margin-top: 8px;
  font-family: var(--font-interface); font-size: 14px; line-height: 1.45; padding: 10px; }
.fx-bulk-summary{ font-family: var(--font-interface); font-size: 13px; margin: 4px 0 2px; }
.fx-bulk-row{ font-family: var(--font-interface); padding: 10px 12px; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }
.fx-bulk-row.is-blocked{ border-color: var(--gold-dim); }
.fx-bulk-head{ display: flex; align-items: center; gap: 8px; }
.fx-bulk-icon{ flex: 0 0 auto; width: 18px; text-align: center; }
.fx-bulk-row.is-ready .fx-bulk-icon{ color: var(--green); }
.fx-bulk-row.is-blocked .fx-bulk-icon{ color: var(--gold-bright); }
.fx-bulk-title{ flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
.fx-bulk-include{ flex: 0 0 auto; font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.fx-bulk-include input{ width: 18px; height: 18px; accent-color: var(--gold-bright); }
.fx-bulk-line{ font-size: 11px; color: var(--text-dim); margin: 3px 0 4px 26px; overflow-wrap: anywhere; }
.fx-bulk-side{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.fx-bulk-side .fx-m-label{ grid-column: 1 / -1; margin: 4px 0 0; }
.fx-bulk-side .fg-select{ min-width: 0; width: 100%; box-sizing: border-box; }
.fx-bulk-open{ border-color: var(--gold-bright); }
