/* ランキング画面 (between races, like a loading screen) */
.tfr{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:16px;background:radial-gradient(ellipse at 50% 30%,#22345f 0%,#0a1226 70%);color:#fff;cursor:pointer;animation:tfrIn .35s ease-out}
@keyframes tfrIn{from{opacity:0}to{opacity:1}}
.tfr-box{width:min(1100px,100%);display:flex;flex-direction:column;gap:14px}
.tfr-h{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.tfr-h b{font-size:clamp(24px,4vw,40px);font-weight:900;letter-spacing:.04em;background:linear-gradient(180deg,#fff6c9,#ffc93a 55%,#d68a00);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 6px rgba(0,0,0,.5))}
.payouts .tfr-h b{background:linear-gradient(90deg,#ff7ab6,#ffd24a,#7cf0ff,#a98bff);-webkit-background-clip:text;background-clip:text}
.tfr-h span{font-size:13px;opacity:.75}
.tfr-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tfr-col{background:rgba(255,255,255,.06);border:1px solid rgba(255,210,74,.35);border-radius:14px;padding:10px;min-width:0}
.tfr-col h4{margin:0 0 6px;text-align:center;font-size:15px;color:#ffd24a;letter-spacing:.2em}
.tfr-col ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}
.tfr-col li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:6px;background:rgba(0,0,0,.25);border-radius:9px;padding:6px 8px}
.tfr-col li.r1{background:linear-gradient(90deg,rgba(255,201,58,.35),rgba(0,0,0,.25));box-shadow:0 0 0 1px rgba(255,210,74,.6)}
.tfr-col .rk{font-size:18px;font-weight:900;text-align:center}
.tfr-col .nm{display:flex;flex-direction:column;min-width:0}
.tfr-col .nm b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tfr-col .nm small{font-size:10px;opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tfr-col .am{font-weight:900;font-size:14px;color:#ffe9a6;white-space:nowrap}
.tfr-col .am i{font-style:normal;font-size:10px;margin-left:2px;opacity:.75}
.tfr-empty{text-align:center;font-size:12px;opacity:.6;padding:18px 0}
.tfr-tabs{display:none}
.tfr-foot{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px}
.tfr-foot small{opacity:.55;font-size:11px}
.tfr-bar{width:min(420px,80%);height:6px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden}
.tfr-bar i{display:block;height:100%;background:linear-gradient(90deg,#ffd24a,#ff8a00);animation:tfrBar var(--dur,9s) linear forwards;transform-origin:left}
@keyframes tfrBar{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media (max-width:860px){
  .tfr-cols{grid-template-columns:1fr}
  .tfr-col{display:none}.tfr-col.on{display:block}
  .tfr-tabs{display:flex;justify-content:center;gap:6px}
  .tfr-tabs i{font-style:normal;font-size:12px;padding:3px 10px;border-radius:999px;background:rgba(255,255,255,.08)}
  .tfr-tabs i.on{background:#ffd24a;color:#241a00;font-weight:800}
}
