/* Name + rating colours in the lobby player list (#user-log), lobby games list (#match-list) and the game-screen
   player list (.plist-row), PC and phone (v21). Cascade layer "snk-lists" is declared first in <head> on games/*.html
   and play/*.html, so these !important rules win over the older stacked skins.
   - Every username and rating: white. Your own username keeps its pale gold (#ffec99; chat-colors.css uses the
     same colour for your name in chat).
   - Tournament room only (lobby): tournament ratings (.t-rate, set by games/*.js) are yellow while the tournament
     runs (body.t-live, and body.t-ending while the last games finish) and red for the hour after it ends
     (body.t-after). */
@layer snk-lists {
  #user-log .user-row :is(.nm-text, .rt),
  #match-list .match-row :is(.pn, .pn-name, .rt),
  .plist-row :is(.nm-txt, .rt) { color: #ffffff !important; }

  #user-log .user-row .who.me .nm-text,
  #match-list .match-row .pn-name.me,
  .plist-row .nm-txt.me { color: #ffec99 !important; }

  body:is(.t-live, .t-ending) :is(#user-log, #match-list) .t-rate { color: #e6b800 !important; font-weight: 700 !important; }
  body.t-after :is(#user-log, #match-list) .t-rate { color: #e53935 !important; font-weight: 700 !important; }

  /* v21d: demerit point on the game screen's player list, bigger (the icon is trimmed to its art, 42x30, so it keeps
     its shape: width auto), right after the name on PC and phone. */
  .plist-row .client img.corner-badge.is-demerit {
    width: auto !important; height: 16px !important; max-width: none !important; max-height: none !important; min-width: 0 !important; object-fit: contain !important;
  }
  .plist-row .nm { display: inline-flex !important; align-items: center !important; min-width: 0 !important; }
  .plist-row img.nm-demerit {
    width: auto !important; height: 16px !important; flex: 0 0 auto !important; display: inline-block !important; position: static !important; transform: none !important; max-width: none !important; max-height: none !important; object-fit: contain !important; margin: 0 0 0 4px !important; vertical-align: middle !important;
  }
}
