/* V11.16 — unified game-reference player/team cards (bracket, results, participants, chat).
   Faction art is a subtle card watermark; avatar portraits remain foreground.
   Does not modify bracket card dimensions or connector geometry. */
body.aow-masters-theme :is(.team-info-card,.participants-team-dialog,.chat-team-card) {
  position:relative;isolation:isolate;border-radius:3px!important;
  background:linear-gradient(155deg,#11272c 0%,#08181c 72%,#071316 100%)!important;
  border:1px solid #57878c!important;
  box-shadow:0 22px 70px rgba(0,0,0,.63),inset 0 1px 0 rgba(151,220,221,.11)!important;
}
body.aow-masters-theme :is(.team-info-card,.participants-team-dialog,.chat-team-card)::before {
  content:"";position:absolute;top:42px;right:12px;width:min(55%,220px);height:210px;
  opacity:.10;pointer-events:none;z-index:0;
  background-size:contain;background-repeat:no-repeat;background-position:right top;
  filter:grayscale(1);
}
body.aow-masters-theme :is(.team-info-card.team-info-conf,.participants-team-modal.is-confederation .participants-team-dialog,.chat-team-card.confederation)::before {background-image:url('/static/confederation.png');}
body.aow-masters-theme :is(.team-info-card.team-info-res,.participants-team-modal.is-resistance .participants-team-dialog,.chat-team-card.resistance)::before {background-image:url('/static/resistance.png');}
body.aow-masters-theme :is(.team-info-card,.participants-team-dialog,.chat-team-card) :is(.team-info-heading h2,#participants-modal-name,#chat-team-name) {font-family:var(--aow-heading);letter-spacing:.035em;line-height:1.1;color:#f2ffff;}
body.aow-masters-theme :is(.team-info-heading small,.participants-modal-faction span,.chat-team-faction) {color:#9fdbe0!important;font-family:var(--aow-heading);letter-spacing:.11em;}
body.aow-masters-theme :is(.team-info-close,.participants-team-close,.chat-team-card-x) {border-radius:2px!important;border-color:#507b80!important;color:#ddf5f4!important;background:#0a2226!important;}
body.aow-masters-theme :is(.team-info-emblem,.participants-modal-faction img,.chat-team-logo) {border-radius:3px!important;}
body.aow-masters-theme .team-info-emblem {
  box-sizing:border-box;width:68px;height:68px;flex:0 0 68px;
  background:#081b21!important;border:1px solid #6caeb3!important;
}
body.aow-masters-theme .team-info-emblem img {
  width:60px;height:60px;max-width:60px;object-fit:contain;filter:none!important;
}
body.aow-masters-theme .team-info-emblem img.bracket-team-picture {object-fit:cover;border:0!important;border-radius:2px!important;}
body.aow-masters-theme .participants-modal-faction {gap:12px;}
body.aow-masters-theme .participants-modal-faction img,
body.aow-masters-theme .chat-team-logo {
  box-sizing:border-box;width:60px!important;height:60px!important;object-fit:contain;
  padding:3px;background:#091e23;border:1px solid #639da4!important;filter:none!important;
}
body.aow-masters-theme .participants-modal-faction img.aow-avatar-custom,
body.aow-masters-theme .chat-team-logo.aow-avatar-custom {object-fit:cover!important;padding:0!important;}
body.aow-masters-theme :is(.team-info-label,.participants-modal-label,.chat-team-roster-title) {color:#9ed7db!important;font-family:var(--aow-heading);letter-spacing:.09em;}
body.aow-masters-theme :is(.team-info-player,.participants-modal-player,.chat-team-roster > *) {border-radius:2px!important;background:rgba(5,22,25,.65)!important;border-color:#34575d!important;}
/* Public participant list uses the same avatar/faction-fallback identity tile. */
body.aow-masters-theme .participant-team-card {
  grid-template-columns:46px minmax(0,1fr) auto 18px;gap:11px!important;
  border-radius:2px!important;overflow:hidden;
}
body.aow-masters-theme .participant-team-card::before {
  content:"";position:absolute;right:8%;top:0;width:65px;height:100%;opacity:.075;
  pointer-events:none;background-size:contain;background-position:center;background-repeat:no-repeat;
}
body.aow-masters-theme .participants-conf .participant-team-card::before {background-image:url('/static/confederation.png');}
body.aow-masters-theme .participants-res .participant-team-card::before {background-image:url('/static/resistance.png');}
body.aow-masters-theme .aow-participant-avatar {display:grid;place-items:center;width:46px;height:46px;border:1px solid #5d959b;background:#06191d;z-index:1;}
body.aow-masters-theme .aow-participant-avatar img {width:42px;height:42px;object-fit:cover;}
@media(max-width:530px) {
  body.aow-masters-theme .participant-team-card {grid-template-columns:41px minmax(0,1fr) 17px;gap:8px!important;}
  body.aow-masters-theme .participant-team-preview {display:none;}
  body.aow-masters-theme .aow-participant-avatar {width:41px;height:41px;}
  body.aow-masters-theme .aow-participant-avatar img {width:37px;height:37px;}
  body.aow-masters-theme .team-info-emblem {width:58px;height:58px;flex-basis:58px;}
  body.aow-masters-theme .team-info-emblem img {width:52px;height:52px;}
}

/* Keep content above the low-opacity faction watermark without moving controls. */
body.aow-masters-theme :is(.team-info-card,.participants-team-dialog,.chat-team-card) > :is(.team-info-header,.team-info-section,.participants-modal-faction,.participants-modal-section,.chat-team-card-top,.chat-team-roster-grid,.chat-team-moderation,.chat-team-muted-banner) {position:relative;z-index:1;}
body.aow-masters-theme :is(.team-info-card,.participants-team-dialog,.chat-team-card) > :is(.team-info-close,.participants-team-close,.chat-team-card-x) {z-index:2;}
