/* Tasks + Rankings layout (on ui.css) */
.tk-body{grid-template-columns:11em minmax(0,18em) minmax(0,1fr)}   /* .fs-layout: categories | quests | the quest */
.tk-types button.tk-none{opacity:.55}
.fs-side .n.tk-ready{background:#e3b356;color:#20140a;font-weight:800}
.tk-list{overflow:auto;display:flex;flex-direction:column;gap:.15em;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.13) transparent}
.tk-row{padding:.5em .55em}
.tk-row.ready .main i{color:var(--fs-gold-hi)}
.tk-flag{flex:0 0 auto;width:.6em;height:.6em;border-radius:50%;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.3)}
.tk-flag.ready{background:#e3b356;box-shadow:0 0 6px rgba(227,179,86,.7)}
.tk-detail{display:flex;flex-direction:column;min-height:0;padding:.85em .9em}
.tk-head{display:flex;align-items:center;gap:.6em;padding-bottom:.55em;border-bottom:1px solid rgba(255,255,255,.07)}
.tk-head h4{margin:0;font-size:1.12em;font-weight:650}
.tk-badge{color:#20140a;background:#e3b356;font-weight:700}
.tk-scroll{flex:1;min-height:0;overflow:auto;padding:.2em .1em .4em 0;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.13) transparent}
.tk-scroll h5{margin:1em 0 .4em;font-size:.82em;font-weight:600;color:var(--fs-dim)}
.tk-desc{margin:.7em 0 0;line-height:1.5;color:rgba(232,230,227,.85)}
.tk-guide{margin:0;line-height:1.6}
.tk-ui{display:inline-block;padding:0 .35em;margin:0 .1em;border-radius:4px;font-size:.92em;color:var(--fs-gold-hi);background:rgba(227,179,86,.1);box-shadow:inset 0 0 0 1px rgba(227,179,86,.25)}
.tk-conds,.tk-rews{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45em}
.tk-conds li{display:grid;grid-template-columns:1.1em 1fr;align-items:center;column-gap:.5em;row-gap:.3em}
.tk-conds li .fs-bar{grid-column:2}
.tk-check{width:1em;height:1em;border-radius:3px;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.28)}
.tk-conds li.ok .tk-check{background:#e3b356;box-shadow:none;-webkit-mask:none}
.tk-conds li.ok .tk-check::after{content:"";display:block;width:.3em;height:.55em;margin:.12em 0 0 .33em;border:solid #20140a;border-width:0 2px 2px 0;transform:rotate(45deg)}
.tk-conds li.ok .tk-ct{color:var(--fs-dim)}
.tk-ct{display:flex;justify-content:space-between;gap:.6em}
.tk-cv{font-variant-numeric:tabular-nums;color:var(--fs-dim);white-space:nowrap}
.tk-rews{flex-direction:row;flex-wrap:wrap;gap:.4em}
.tk-rews li{padding:.3em .6em;border-radius:6px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);font-size:.92em}
.tk-rews li b{color:var(--fs-gold-hi);font-variant-numeric:tabular-nums}
.tk-foot{padding-top:.6em;border-top:1px solid rgba(255,255,255,.07);display:flex;justify-content:flex-end}
.tk-claim{min-width:11em}
.tk-claim:disabled{opacity:.45;cursor:default;filter:saturate(.3)}

.rk-main{min-height:0;display:flex;flex-direction:column;gap:.4em}
.rk-table{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:var(--fs-r);background:rgba(0,0,0,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
.rk-head,.rk-row{display:flex;align-items:center;gap:.6em;padding:0 .8em}
.rk-head{height:2.3em;flex:0 0 auto;font-size:.82em;color:var(--fs-dim);border-bottom:1px solid rgba(255,255,255,.07)}
.rk-rows{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.13) transparent}
.rk-row{min-height:3.4em}
.rk-row:nth-child(even){background:rgba(255,255,255,.022)}
.rk-row.act{cursor:pointer}
.rk-row.act:hover{background:rgba(255,255,255,.05)}
.rk-rank{width:3.4em;flex:0 0 auto;text-align:center;font-variant-numeric:tabular-nums}
.rk-rank b{display:inline-grid;place-items:center;min-width:1.9em;height:1.9em;padding:0 .3em;border-radius:999px;font-weight:700;color:var(--fs-dim)}
.rk-row.top1 .rk-rank b{color:#2a1c05;background:linear-gradient(#ffe39a,#e3b356 60%,#b8862c)}
.rk-row.top2 .rk-rank b{color:#1c1f24;background:linear-gradient(#f2f4f7,#b9c0c9 60%,#8a929c)}
.rk-row.top3 .rk-rank b{color:#24140a;background:linear-gradient(#f4c79c,#c98a52 60%,#94592c)}
.rk-row.own{background:rgba(227,179,86,.12)!important}
.rk-row.hit{background:rgba(120,170,255,.14)!important}
.rk-c{flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.95em}
.rk-c.main{flex:1.6 1 0;padding:.45em 0}   /* room for the medal glow (the cell clips its overflow) */
.rk-c.sm{flex:.6 1 0}
.rk-c.num{text-align:right;font-variant-numeric:tabular-nums;padding-right:1.4em}
.rk-head .rk-c.num{text-align:right;padding-right:1.4em}
.rk-name{font-weight:600}
.rk-sub{display:block;font-style:normal;font-size:.78em;color:var(--fs-dim);overflow:hidden;text-overflow:ellipsis}
.rk-vip{font-size:.66em;font-weight:700;padding:.05em .35em;border-radius:4px;color:rgba(240,199,102,.85);box-shadow:inset 0 0 0 1px rgba(227,179,86,.4);vertical-align:.12em}
.rk-stars{color:#e3b356;font-size:.8em;letter-spacing:.05em}
.rk-stars b{font-size:.9em;margin-left:.15em}
.rk-foot{text-align:right;padding-right:.3em}
/* VIP crests in the Lords leaderboard (owner 2026-11-11): VIP 6 bronze, 9 silver, 10 gold - rankings.js vipBadge() */
.rk-vipc{width:1.6em;height:1.6em;vertical-align:-.45em;margin-left:.25em;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.65))}
/* medals (not the VIP crests): bigger, a light sweep clipped to the medal's shape every 5 s, a warm pulsing glow; staggered per medal */
.rk-medal{position:relative;display:inline-block;width:2.6em;height:2.6em;vertical-align:-.9em;margin-left:.2em;line-height:0}
.rk-medal img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.7)) drop-shadow(0 0 3px rgba(240,190,90,.35));
  animation:rkglow 3.2s ease-in-out infinite;animation-delay:inherit}
.rk-medal::after{content:"";position:absolute;inset:0;pointer-events:none;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat;
  background:linear-gradient(115deg,transparent 42%,rgba(255,250,235,.7) 49%,rgba(255,225,160,.35) 52%,transparent 58%) 160% 0/300% 100% no-repeat;
  mix-blend-mode:screen;animation:rkshine 5s ease-in-out infinite;animation-delay:var(--d,0s)}
@keyframes rkshine{0%,58%{background-position:160% 0}88%,100%{background-position:-60% 0}}
@keyframes rkglow{0%,100%{filter:drop-shadow(0 1px 2px rgba(0,0,0,.7)) drop-shadow(0 0 3px rgba(240,190,90,.35))}
  50%{filter:drop-shadow(0 1px 2px rgba(0,0,0,.7)) drop-shadow(0 0 6px rgba(255,200,110,.8))}}
@media (prefers-reduced-motion:reduce){.rk-medal img,.rk-medal::after{animation:none}.rk-medal::after{display:none}}
/* Lord mini profile from the leaderboards (owner 2026-11-11: "instead of that it should open a mini profile with their medals") */
.fs-win.rkp{background:radial-gradient(90% 55% at 50% 0%,rgba(227,179,86,.13),transparent 62%),linear-gradient(180deg,#17161a,#0f1013)}
.rkp-body{display:flex;flex-direction:column;gap:1em;padding:1.1em 1.3em 1.3em}
.rkp-head{display:flex;align-items:center;gap:1em;padding-bottom:.9em;border-bottom:1px solid rgba(227,179,86,.18)}
.rkp-id{display:flex;flex-direction:column;gap:.25em;min-width:0}
.rkp-name{display:flex;align-items:center;gap:.2em;min-width:0}
.rkp-name b{font-size:1.45em;letter-spacing:.02em;color:#fff3dc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rkp-name .rk-vipc{width:2.1em;height:2.1em;vertical-align:middle}
.rkp-id i{font-style:normal;font-size:.85em;color:rgba(240,199,102,.85)}
.rkp-rank{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;font-size:1.6em;font-weight:800;color:#f0c766;line-height:1;text-shadow:0 0 12px rgba(240,199,102,.35)}
.rkp-rank em{font-style:normal;font-size:.42em;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.45);margin-top:.35em}
.rkp-stats{display:grid;grid-template-columns:repeat(auto-fill,minmax(9.5em,1fr));gap:.55em}
.rkp-stat{display:flex;flex-direction:column;gap:.2em;padding:.6em .75em;border-radius:12px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.rkp-stat span{font-size:.72em;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.45)}
.rkp-stat b{font-size:1.05em;color:#f4f1ea;font-variant-numeric:tabular-nums}.rkp-stat b em{font-style:normal;font-weight:500;font-size:.8em;color:rgba(255,255,255,.5)}
.rkp-medals{display:flex;flex-direction:column;gap:.55em}
.rkp-mh{font-size:.75em;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#e3b356}
.rkp-medal{display:flex;align-items:center;gap:.9em;padding:.55em .8em;border-radius:14px;background:linear-gradient(90deg,rgba(227,179,86,.14),rgba(227,179,86,.03));box-shadow:inset 0 0 0 1px rgba(227,179,86,.28)}
.rkp-medal .rk-medal{width:4.4em;height:4.4em;flex:0 0 auto;margin:0;vertical-align:middle}
.rkp-medal span{font-weight:650;color:#ffe9bd;line-height:1.35}
/* the "epic" medal (owner 2026-11-17, Nezha's BM10 "The Last Frontier": "a special effect a little more than others ... keep it simple a
   little extra"): a bit bigger, a soft violet halo that breathes behind it, a violet + gold glow and a more frequent light sweep */
.rk-medal.epic{width:2.9em;height:2.9em;vertical-align:-1.05em}
.rk-medal.epic::before{content:"";position:absolute;inset:-14%;border-radius:50%;pointer-events:none;z-index:0;
  background:radial-gradient(closest-side,rgba(175,95,255,.42),rgba(175,95,255,.14) 62%,transparent);animation:rkhalo 3.2s ease-in-out infinite}
.rk-medal.epic img{position:relative;z-index:1;animation:rkglowepic 3.2s ease-in-out infinite}
.rk-medal.epic::after{z-index:2;animation-duration:3.4s;
  background:linear-gradient(115deg,transparent 40%,rgba(255,250,240,.85) 49%,rgba(220,180,255,.45) 53%,transparent 60%) 160% 0/300% 100% no-repeat}
@keyframes rkhalo{0%,100%{opacity:.55;transform:scale(.93)}50%{opacity:1;transform:scale(1.06)}}
@keyframes rkglowepic{0%,100%{filter:drop-shadow(0 1px 2px rgba(0,0,0,.7)) drop-shadow(0 0 4px rgba(180,100,255,.55))}
  50%{filter:drop-shadow(0 1px 2px rgba(0,0,0,.7)) drop-shadow(0 0 9px rgba(195,120,255,.95)) drop-shadow(0 0 3px rgba(255,210,130,.6))}}
.rkp-medal .rk-medal.epic{width:4.9em;height:4.9em}
@media (prefers-reduced-motion:reduce){.rk-medal.epic::before,.rk-medal.epic img{animation:none}}
