/* CS2 Premier plate — single style for every surface (helper tw_cs2_rank_badge). 03.11.2026
   Seven colour bands (every 5,000). Drawn with CSS only; no Valve artwork. Sizes: lg 32px (cover chip row), md 22px (list row), sm 18px (score cell). */
.cs2r { --cs2r-c: #b0c3d9; --cs2r-k: 6px; position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 22px; padding: 0 10px 0 12px; direction: ltr; unicode-bidi: isolate; vertical-align: middle; white-space: nowrap;
  font-size: 12px !important; font-weight: 700 !important; line-height: 1 !important; font-variant-numeric: tabular-nums; letter-spacing: .01em;
  color: var(--cs2r-c); background: rgba(255,255,255,.07);
  background: linear-gradient(100deg, color-mix(in srgb, var(--cs2r-c) 26%, transparent) 0%, rgba(255,255,255,.05) 78%);
  clip-path: polygon(var(--cs2r-k) 0, 100% 0, calc(100% - var(--cs2r-k)) 100%, 0 100%); }
.cs2r::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--cs2r-k) + 3px); background: var(--cs2r-c);
  clip-path: polygon(var(--cs2r-k) 0, 100% 0, calc(100% - var(--cs2r-k)) 100%, 0 100%); }
.cs2r b { font: inherit; color: inherit; text-shadow: 0 0 10px color-mix(in srgb, var(--cs2r-c) 45%, transparent); }
.cs2r small { font-size: 1em !important; font-weight: inherit !important; opacity: 1; }
.cs2r-l { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .01em; color: rgba(255,255,255,.86); }
/* Own Premier emblem (helper tw_cs2_rank_icon): band colour, sits before the label/number */
.cs2r-i { flex: none; width: 15px; height: 15px; color: var(--cs2r-c); position: relative; }
.cs2r--lg .cs2r-i { width: 20px; height: 20px; }
.cs2r--sm .cs2r-i { width: 13px; height: 13px; }
.cs2r--sm { gap: 4px; }
.cs2r.is-none .cs2r-i { color: rgba(255,255,255,.55); }
.cs2r-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cs2r--lg { --cs2r-k: 9px; height: 32px; padding: 0 16px 0 18px; gap: 8px; font-size: 19px !important; }
.cs2r--lg.is-none b { font-size: 13px !important; font-weight: 700 !important; color: #c9cdda; text-shadow: none; }
.cs2r--sm { --cs2r-k: 5px; height: 18px; padding: 0 7px 0 9px; font-size: 11px !important; }

.cs2r-b0 { --cs2r-c: #b0c3d9; }
.cs2r-b1 { --cs2r-c: #8cc6ff; }
.cs2r-b2 { --cs2r-c: #6a7dff; }
.cs2r-b3 { --cs2r-c: #c166ff; }
.cs2r-b4 { --cs2r-c: #f03cff; }
.cs2r-b5 { --cs2r-c: #eb4b4b; }
.cs2r-b6 { --cs2r-c: #fed700; }
.cs2r.is-none { --cs2r-c: rgba(255,255,255,.42); cursor: help; }
.cs2r.is-none b { text-shadow: none; color: #c9cdda; }
.cs2r.is-none:not(.cs2r--lg) b { font-weight: 600; }

/* Competitive / Wingman chip (profile cover): mode name dimmer than the skill group */
.cs2r-sgm { color: rgba(255,255,255,.62); font-weight: 600; }

/* Own profile: update button + queued state */
.cs2r-up { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  font-size: 13px !important; font-weight: 600 !important; color: #fcd9a0; background: rgba(240,168,48,.12); border: 1px solid rgba(240,168,48,.45);
  transition: background-color .15s ease, border-color .15s ease; }
.cs2r-up:hover, .cs2r-up:focus-visible { background: rgba(240,168,48,.22); border-color: rgba(240,168,48,.75); outline: none; }
.cs2r-up[disabled] { opacity: .6; cursor: progress; }
.cs2r-up i { font-size: 12px !important; }
.cs2r-q { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 2px; font-size: 13px !important; font-weight: 600;
  color: #fde68a; background: none; border: 0; cursor: help; }
.cs2r-q i { font-size: 12px !important; }
.cs2r-msg { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 12px !important; font-weight: 600; color: #fcd34d; }
.cs2r-msg::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 16px; border-radius: 50%; font-size: 11px; font-weight: 900; line-height: 1; color: #1a0b0b; background: #fbbf24; }
.cs2r-msg:empty { display: none; }

/* Compact row (account settings card, list contexts) */
.cs2r-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cs2r-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px !important; font-weight: 600;
  color: #e6e9f2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.cs2r-chip img { width: 18px; height: 18px; }

/* Phones: 40px touch target, label kept */
@media (max-width: 600px) { .cs2r-up { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .cs2r-up { transition: none; } }
