/* Manager Game styles — shared by Game.aspx and Play.aspx (loaded after site.css). */

/* loading overlay shown while the server deals a new game */
#gm-loader { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 14, 26, .74); }
.gm-loader-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 30px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--ink); font-weight: 700; }
.gm-loader-sub { font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.gm-spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent);
  animation: gm-spin .8s linear infinite; }
@keyframes gm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gm-spin { animation-duration: 2s; } }
.gpos { margin: 0 0 18px; }
.gpos-h { font-weight: 800; color: var(--brand); margin: 14px 0 8px; font-size: 1.02rem; }
.gsquad { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gcard { display: flex; align-items: center; gap: 12px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 13px; }
.rbadge { flex: none; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: 1.15rem; font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--line); background: rgba(255,255,255,.03); }
.gci { min-width: 0; }
.gcn { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcm { font-size: .82rem; margin-top: 1px; }
tr.lg-you { background: rgba(244,197,66,.10); }
tr.lg-you td { font-weight: 600; }
.gtag { font-size: .65rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 800;
  color: #0b1426; background: var(--gold); border-radius: 5px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

/* standalone (Play.aspx) header */
.gm-fullsite { margin-left: auto; color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.gm-fullsite:hover { color: var(--accent-dk); }

/* ---- match engine UI ---- */
.gm-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; flex-wrap: wrap; }
.gm-tab { padding: 8px 16px; cursor: pointer; font-family: inherit; font-size: .92rem; font-weight: 600;
  background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--ink-soft); }
.gm-tab:hover { color: var(--ink); }
.gm-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.gm-btn { padding: 9px 20px; cursor: pointer; font-family: inherit; font-size: .95rem; font-weight: 700;
  color: #fff; background: var(--accent); border: 0; border-radius: 9px; transition: background .12s; }
.gm-btn:hover:not(:disabled) { background: var(--accent-dk); }
.gm-btn:disabled { opacity: .45; cursor: not-allowed; }
.gm-go { background: var(--good); } .gm-go:hover:not(:disabled) { background: #2dbd78; }
.gm-actions { margin: 16px 0; display: flex; align-items: center; gap: 12px; }
.gm-warn { color: #ffb0a6; font-size: .88rem; }
.gm-banner { background: rgba(244,197,66,.12); border: 1px solid rgba(244,197,66,.4); color: var(--ink);
  padding: 14px 16px; border-radius: var(--radius); font-size: 1.05rem; margin: 6px 0 16px; }

.gm-next { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; margin: 0 0 14px; }
.gm-next-h { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); font-weight: 700; }
.gm-fixture { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 10px 0 14px; }
.gm-ft { font-size: 1.25rem; font-weight: 800; flex: 1; text-align: center; }
.gm-ft.you { color: var(--gold); }
.gm-v { color: var(--ink-soft); font-weight: 700; }
.gm-next .gm-btn { display: block; width: 100%; }
.gm-otherfx { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.gm-ofx { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 14px; font-size: .92rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.gm-ofx .gm-h { text-align: right; } .gm-ofx .gm-a { text-align: left; } .gm-ofx .gm-mid { text-align: center; white-space: nowrap; }
.gm-ofx b { font-variant-numeric: tabular-nums; }
.gm-ofx.gm-clk { cursor: pointer; transition: border-color .12s, background .12s; }
.gm-ofx.gm-clk:hover { border-color: var(--accent); }
.gm-ofx.gm-clk.on { border-color: var(--gold); background: rgba(244,197,66,.08); }
.gm-odbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 12px 14px; margin: 10px 0 4px; }

.gm-form { display: inline-block; width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 4px;
  font-size: .68rem; font-weight: 800; color: #fff; margin-right: 2px; }
.gm-W { background: var(--good); } .gm-D { background: #8a7b3a; } .gm-L { background: var(--bad); }

.gm-tacbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 6px 0 14px; }
.gm-tacbar label { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.gm-tacbar select { margin-left: 6px; padding: 7px 10px; font-family: inherit; font-size: .92rem;
  border: 1px solid var(--line); border-radius: 8px; background: #16243d; color: var(--ink); }
.gm-need { color: var(--ink-soft); font-size: .85rem; }
.gm-pick { cursor: pointer; position: relative; user-select: none; }
.gm-pick input { position: absolute; opacity: 0; pointer-events: none; }
.gm-pick.on { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; background: rgba(37,169,106,.08); }
.gm-out { opacity: .5; }
.gm-status { text-transform: uppercase; font-size: .66rem; font-weight: 800; letter-spacing: .5px; padding: 1px 6px; border-radius: 4px; }
.gm-status.gm-suspended { background: var(--bad); color: #fff; } .gm-status.gm-injured { background: #8a5a2a; color: #fff; }

.gm-scoreboard { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 16px 0 4px; }
.gm-scoreboard .gm-team { flex: 1; text-align: center; font-size: 1.15rem; font-weight: 800; }
.gm-score { font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -1px; color: var(--brand); white-space: nowrap; }
.gm-final .gm-score { color: var(--gold); }
.gm-clock { text-align: center; color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.gm-feed { min-height: 80px; display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin: 0 auto; }
.gm-goal { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 8px; padding: 7px 12px; font-size: .92rem; }
.gm-tlwrap { display: flex; justify-content: center; }
.gm-timeline { width: 100%; max-width: 560px; margin: 6px auto 0; display: flex; flex-direction: column; gap: 4px; }
.gm-quiet { text-align: center; }
.gm-ev { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 8px; font-size: .9rem; background: var(--panel); border: 1px solid var(--line); }
.gm-evmin { width: 32px; text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; font-weight: 700; }
.gm-evic { width: 20px; text-align: center; }
.gm-ev-a { flex-direction: row-reverse; text-align: right; }

/* ---- new-game form (mode picker) ---- */
.gm-newform { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-top: 10px; }
.gm-fld { display: flex; flex-direction: column; gap: 4px; }
.gm-fld > span { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.gm-fld input, .gm-fld select { padding: 9px 11px; font-size: .95rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 8px; background: #16243d; color: var(--ink); max-width: 360px; }
.gm-modepick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.gm-mode { display: flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 13px 15px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .12s, background .12s; }
.gm-mode:hover { border-color: var(--accent); }
.gm-mode input { position: absolute; opacity: 0; pointer-events: none; }
.gm-mode:has(input:checked) { border-color: var(--gold); background: rgba(244,197,66,.08); }
.gm-mode-t { font-weight: 800; }
.gm-mode-d { font-size: .82rem; color: var(--ink-soft); }

/* ---- snake draft ---- */
.gm-draftbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.gm-dq { font-size: .8rem; font-weight: 800; padding: 4px 10px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); color: var(--ink-soft); }
.gm-dq.full { color: #0b1426; background: var(--good); border-color: var(--good); }
.gm-draftclub { margin: 4px 0 10px; font-size: 1.02rem; }
.gm-pickbtn { font-family: inherit; text-align: left; cursor: pointer; color: var(--ink); width: 100%; }
.gm-pickbtn:hover:not(:disabled) { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
.gm-pickbtn:disabled { opacity: .4; cursor: not-allowed; }

/* ---- fitness / condition bar ---- */
.gccond { margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gm-cond { flex: none; width: 78px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.10); overflow: hidden; }
.gm-cond-f { display: block; height: 100%; border-radius: 4px; }
.gccond .hint { white-space: nowrap; }

/* ---- small buttons + clickable standings rows ---- */
.gm-sm { padding: 6px 12px; cursor: pointer; font-family: inherit; font-size: .85rem; font-weight: 700;
  color: var(--ink); background: #16243d; border: 1px solid var(--line); border-radius: 8px; }
.gm-sm:hover { border-color: var(--accent); color: var(--accent-dk); }
tr.gm-trow { cursor: pointer; }
tr.gm-trow:hover { background: rgba(255,255,255,.05); }

/* ---- match lineups ---- */
.gm-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; margin: 12px auto 0; }
.gm-lpcol { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.gm-lh { font-weight: 800; margin-bottom: 6px; font-size: .92rem; }
.gm-lp { display: flex; align-items: center; gap: 7px; font-size: .86rem; padding: 2px 0; }
.gm-lp.off .gm-lpn { text-decoration: line-through; opacity: .6; }
.gm-lpr { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 22px; }
.gm-lpsub { margin-top: 5px; font-size: .8rem; }

/* two-up fields on the form (teams + length) */
.gm-row { display: flex; gap: 14px; flex-wrap: wrap; }
.gm-row .gm-fld { flex: 1 1 220px; }
.gm-row .gm-fld select { max-width: none; }

/* ---- phones: stack the two-column blocks, shrink the big scoreboard ---- */
@media (max-width: 560px) {
  .gm-lineups { grid-template-columns: 1fr; }
  .gm-scoreboard { gap: 10px; }
  .gm-score { font-size: 2rem; }
  .gm-scoreboard .gm-team { font-size: .98rem; }
  .gm-ft { font-size: 1.05rem; }
  .gm-tab { padding: 8px 11px; font-size: .88rem; }
  .gm-tacbar { gap: 10px; }
  .gm-actions { flex-wrap: wrap; }
}
