/*
 * rc-iq-card.css - the look of the big IQ League card drawn by rc-iq-card.js (which adds this file by itself).
 * Every class starts with "rcq-", so a page that loads it keeps its own styles. The card is always dark
 * (its league's medal colours), so it needs no light / dark tokens.
 * Nothing is ever cut off: the card measures itself (container units) and the IQ, the brain and the stars
 * shrink with it - seven stars still fit a 320 px phone.
 */
.rcq-card{position:relative;overflow:hidden;box-sizing:border-box;width:100%;border-radius:20px;padding:14px;color:#fff;border:1px solid rgba(255,255,255,.25);
  background:linear-gradient(135deg,#0B1B45,var(--c2,#8C5220) 60%,var(--c1,#CD7F32));
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;line-height:1.3;text-align:left;
  container-type:inline-size;transform-origin:50% 50%}
.rcq-card *{box-sizing:border-box}
/* the band of light that crosses the card */
.rcq-card::after{content:"";position:absolute;top:0;bottom:0;left:-40%;width:40%;pointer-events:none;z-index:0;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.18),transparent);animation:rcq-glint 3.4s linear infinite}
@keyframes rcq-glint{0%,22%{transform:translateX(0)}100%{transform:translateX(360%)}}
/* the flash of a league change (white = promoted, red = dropped): over the whole card, under nothing */
.rcq-flash{position:absolute;inset:0;z-index:3;opacity:0;background:#fff;pointer-events:none;border-radius:inherit}
.rcq-row{position:relative;z-index:1;display:flex;align-items:center;gap:12px;min-width:0}
.rcq-brain{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:56px;height:56px}
.rcq-ring{position:absolute;inset:0;border-radius:50%;animation:rcq-turn 6s linear infinite;
  background:conic-gradient(var(--ring,#2F80FF),#FF8A1F,var(--ring,#2F80FF));
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3.5px))}
.rcq-brain img{width:82%;height:82%;border-radius:50%;object-fit:cover;display:block;animation:rcq-pulse 1.1s ease-in-out infinite alternate}
@keyframes rcq-turn{to{transform:rotate(360deg)}}
@keyframes rcq-pulse{from{transform:scale(.92)}to{transform:scale(1.06)}}
.rcq-txt{flex:1;min-width:0}
.rcq-k{font-size:12px;font-weight:600;color:rgba(255,255,255,.85);overflow-wrap:anywhere}
.rcq-v{font-size:24px;font-size:clamp(17px,8.2cqw,24px);font-weight:800;line-height:1.15;white-space:nowrap;transform-origin:0 50%}
.rcq-l{font-size:11px;color:rgba(255,255,255,.8)}
.rcq-t{font-size:13px;font-weight:700;color:#FFB25C;overflow-wrap:anywhere}
.rcq-delta{flex:none;border-radius:10px;background:rgba(0,0,0,.3);padding:4px 10px;font-weight:700;display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.rcq-prog{position:relative;z-index:1;display:flex;align-items:center;gap:8px;margin-top:10px;min-width:0;min-height:26px}
/* The stars take the width they are given: each one is 26 px at most and they shrink together, never cut off. */
.rcq-stars{display:flex;flex:1 1 0;min-width:0;max-width:calc(var(--n,5) * 26px);color:#FFD54F}
.rcq-st{position:relative;flex:1 1 0;min-width:0;max-width:26px;aspect-ratio:1/1}
.rcq-st svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.rcq-f{opacity:0}
.rcq-on .rcq-f{opacity:1}
.rcq-rg{position:absolute;inset:0;border-radius:50%;border:2px solid currentColor;opacity:0;pointer-events:none}
.rcq-n{flex:none;font-size:12px;font-weight:700;color:rgba(255,255,255,.8);white-space:nowrap}
.rcq-bar{flex:1;min-width:0;height:10px;border-radius:5px;background:rgba(255,255,255,.2);overflow:hidden}
.rcq-bar i{display:block;width:100%;height:100%;background:#FFD54F;transform-origin:0 50%}
/* "Promoted! ..." has its place from the start (unseen until the new league arrives), so nothing below moves. */
.rcq-line{position:relative;z-index:1;font-size:12px;font-weight:600;margin-top:6px;color:rgba(255,255,255,.92);opacity:0;min-height:16px;overflow-wrap:anywhere}
.rcq-still .rcq-line{opacity:1}
@container (max-width:300px){
  .rcq-row{gap:9px}
  .rcq-brain{width:46px;height:46px}
  .rcq-delta{padding:3px 7px;font-size:13px}
}
@container (max-width:250px){
  .rcq-brain{width:40px;height:40px}
  .rcq-k{font-size:11px}
  .rcq-t{font-size:12px}
}
@media (prefers-reduced-motion:reduce){.rcq-card::after,.rcq-ring,.rcq-brain img{animation:none!important}}
html[data-rc-motion=reduce] :is(.rcq-card::after,.rcq-ring,.rcq-brain img){animation:none!important}
html[data-rc-motion=reduce] .rcq-card::after{animation:none!important}
