/* B-Gjengen CUP Phase 3L — final CUP MODE visual polish (preview only).
   Keeps all changes scoped to /cup-preview/. No real server / Steam logic. */

/* SERVER 1 — INGAME, on one line, freeing vertical space above each card. */
.cup-live-matches .match-slot-heading {
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:22px;
  padding:0;
}
.cup-live-matches .live-match-number {
  font-size:12px;
  line-height:17px;
  letter-spacing:.08em;
  white-space:nowrap;
  margin:0;
}
.cup-live-matches .server-status-divider {
  display:inline-flex;
  align-items:center;
  color:#81a08a;
  font-size:12px;
  line-height:16px;
  font-weight:850;
  margin:0 -2px;
}
.cup-live-matches .match-slot-status {
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
}
.cup-live-matches .match-slot-status .pill {
  font-size:9px;
  line-height:1.1;
  padding:4px 7px;
  white-space:nowrap;
}
/* Preserve existing card sizes and colors; only the top label row shrinks. */
.cup-live-matches .live-match-slot {gap:5px}

/* Only a player who belongs to THIS active match gets a yellow YOUR LOBBY CTA.
   Supreme Leader access alone does not imply team membership. */
.cup-live-matches .match-cta.match-lobby.your-lobby,
.cup-live-matches .match-card.ingame .match-cta.match-lobby.your-lobby,
.cup-live-matches .match-card.upcoming .match-cta.match-lobby.your-lobby {
  background:linear-gradient(180deg,#fff06a 0%,#ffd326 65%,#f6b900 100%);
  color:#171508;
  border:1px solid #fff191;
  font-weight:1000;
  text-shadow:none;
  box-shadow:0 0 0 1px #6b500b66, 0 0 12px #ffd7358c;
}
.cup-live-matches .match-cta.match-lobby.your-lobby:hover,
.cup-live-matches .match-cta.match-lobby.your-lobby:focus-visible {
  color:#101007;
  background:linear-gradient(180deg,#fff69b,#ffdf40);
  border-color:#fff7c2;
  box-shadow:0 0 0 1px #a87911,0 0 18px #ffdf5899;
}
.cup-live-matches .match-cta.match-lobby.your-lobby:focus-visible {
  outline:2px solid #fffad0;
  outline-offset:2px;
}
/* CUP STARTING SOON: a visibly unavailable lobby button; no click action. */
.cup-live-matches .match-cta.match-lobby.is-disabled,
.cup-live-matches .match-cta.match-lobby:disabled {
  background:#19201b;
  color:#7c9384;
  border-color:#334a3b;
  box-shadow:none;
  opacity:.7;
  cursor:not-allowed;
  transform:none;
}

/* Supreme Leader: discoverable in-CUP management CTA. */
.cup-live-teams .cup-manage-teams-action {
  min-height:32px;
  padding:7px 13px;
  border:1px solid #72bb86;
  background:linear-gradient(180deg,#20472d,#142e1d);
  color:#d8ffe1;
  border-radius:7px;
  font-size:11px;
  font-weight:950;
  letter-spacing:.045em;
  white-space:nowrap;
}
.cup-live-teams .cup-manage-teams-action:hover,
.cup-live-teams .cup-manage-teams-action:focus-visible {
  border-color:#a5ffbf;
  background:#27613b;
}
/* During CUP MODE, the roster manager appears ABOVE general event controls.
   Prior to the Cup, the editor retains the original layout and ordering. */
.cup-editor-body {
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:16px;
}
.cup-editor-body > .admin-grid,
.cup-editor-body > .roster-manager {margin:0}
.cup-editor-body.is-live > .roster-manager {order:-1}
.cup-roster-live-note {
  margin:13px 0 17px;
  border:1px solid #426e4c;
  border-radius:9px;
  background:#15281a;
  color:#c1e8c9;
  padding:11px 14px;
  font-size:12px;
  line-height:1.5;
}

/* Fit even four SERVER/status labels at smaller viewport widths. */
@media(max-width:1100px) {
  .cup-live-matches .match-slot-heading {gap:7px}
  .cup-live-matches .live-match-number {font-size:11px}
  .cup-live-matches .match-slot-status .pill {font-size:8px;padding:4px 6px}
}
@media(max-width:700px) {
  .cup-live-matches .match-slot-heading {gap:8px;min-height:21px}
  .cup-live-matches .live-match-number {font-size:12px}
  .cup-live-matches .match-slot-status .pill {font-size:9px}
  .cup-live-teams .cup-manage-teams-action {max-width:100%;white-space:normal;text-align:center}
  .cup-roster-live-note {font-size:11px}
}

/* Final visual touch: remove the extra panel behind each team emblem + name.
   Keep the emblem's own glow/frame, team labels and card backgrounds intact.
   Scoped to top LIVE MATCHES / SEMIFINALS / GRAND FINAL cards only. */
.cup-live-matches .match-card .match-team,
.cup-live-matches .match-card.upcoming .match-team {
  border: 0;
  background: transparent;
  box-shadow: none;
}
