
.cf { max-width: 52rem; }
.cf [hidden] { display: none !important; }
.cf-f { display: grid; grid-template-columns: fit-content(40%) minmax(0, 1fr); gap: 10px 12px; align-items: center; margin: 14px 0 18px;
  padding: 12px; border: 2px solid var(--frame); border-radius: 14px; background: var(--panel); max-width: 30rem; }
.cf-f .cf-srvp { grid-column: 1 / -1; margin: 0; padding: 0; background: none; position: static; }
.cf-f > .fmh-qrow { grid-column: 1 / -1; }
.cf-f .fmh-q > .fmh-fold-body { margin: 8px 0 0; }
.cf-srvp select { flex: 1 1 auto; min-width: 0; }
.cf-k { font-size: 14px; font-weight: 650; color: var(--ink); }
.cf-mypw { justify-self: start; width: 9em; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 6px 10px;
  font: 16px var(--font); border: 2px solid var(--field-border); border-radius: 10px; background: var(--panel); color: var(--ink); }
.cf-mypw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf-join { justify-self: start; margin: 0; }
.cf-chk { grid-column: 2; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin: -2px 0; font-size: 14px;
  cursor: pointer; }
.cf-chk input { width: 20px; height: 20px; margin: 0; accent-color: var(--btn); }
.cf-list { list-style: none; margin: 0; padding: 0; border: 2px solid var(--frame); border-radius: 12px; background: var(--panel);
  overflow: hidden; }
.cf-list > li + li { border-top: 1px solid var(--line); }
.cf-list[aria-busy="true"] { min-height: min(100vh, calc(var(--cf-rows, 0) * 108px + 4px)); }
@media (min-width: 760px) { .cf-list[aria-busy="true"] { min-height: min(100vh, calc(var(--cf-rows, 0) * 56px + 35px)); } }
.cf-r { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto;
  grid-template-areas: "pos emb name pw" "pos emb sub pw" ". st st st"; gap: 0 8px; align-items: center;
  padding: 10px 12px 10px 8px; color: var(--ink); text-decoration: none; }
.cf-r:hover { background: var(--hover); text-decoration: none; }
.cf-r:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cf-pos { grid-area: pos; align-self: center; text-align: center; font: 700 14px var(--game); color: var(--muted);
  font-variant-numeric: tabular-nums; }
.cf-pos img { display: block; width: 24px; height: auto; aspect-ratio: auto 66 / 55; margin: 0 auto -2px; } 
.cf-pos img[src*="rank_0."] { aspect-ratio: auto 88 / 74; }
.cf-pos img[src*="rank_1."] { aspect-ratio: auto 88 / 72; }
.cf-pos img[src*="rank_2."] { aspect-ratio: auto 1 / 1; }
.cf-pos.top { color: var(--ink); }
.cf-r .emb { grid-area: emb; width: 40px; }
.cf-r .cf-noemb { grid-area: emb; }
.cf-n { grid-area: name; font: 700 16px/1.25 var(--game); font-synthesis: none; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.cf-sub { grid-area: sub; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-tier { font-weight: 700; color: var(--ink); }
.cf-open { color: var(--good); font-weight: 650; }
.cf-pwc { grid-area: pw; justify-self: end; align-self: center; display: grid; justify-items: end; gap: 1px; }
.cf-pw { display: flex; align-items: center; gap: 4px; font: 700 17px var(--game); font-variant-numeric: tabular-nums; }
.cf-pw img { width: 18px; height: auto; aspect-ratio: auto 72 / 65; }
.cf-fit { font-size: 12.5px; font-weight: 650; color: var(--accent); white-space: nowrap; }
.cf-st { grid-area: st; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 8px;
  margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line); }
.cf-st > span { display: grid; line-height: 1.25; }
.cf-st i { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-st b { font: 700 14.5px var(--font); font-variant-numeric: tabular-nums; }
.cf-st .full, .cf-facts .full { color: var(--bad); }
.cf-st .na, .cf-facts .na { color: var(--muted); font-weight: 400; }
.cf-hd { display: none; }
@media (max-width: 759px) {
  .cf-sub { white-space: normal; }
  .cf-sub > span { white-space: nowrap; }
  .cf-st { align-items: end; }
  .cf-st i { white-space: normal; word-break: keep-all; }
}
.cf-empty { padding: 10px 12px; margin: 0; font-size: 14px; color: var(--muted); }
.cf-more { margin: 12px 0 0; text-align: center; }
.cf-morebtn { min-height: 44px; min-width: 12rem; justify-content: center; }
.cf-count { margin: 8px 2px 2px; font-size: 13px; color: var(--muted); text-align: center; }
.cf-count abbr, .cl-upd abbr { text-decoration: none; cursor: help; border-bottom: 1px dotted currentColor; }
.cf-miss { margin: 2px 2px 18px; font-size: 13.5px; text-align: center; }
.cf-small { font-size: 13.5px; color: var(--muted); margin: 6px 0; }
.cf-back { margin: 0 0 8px; font-size: 14px; }
.cf-back a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; vertical-align: middle; }
.cf-back, .cf-back ~ .cl { max-width: 52rem; }
@media (min-width: 760px) {
  .cf-f { grid-template-columns: auto auto auto auto auto; justify-content: start; gap: 12px; max-width: none; padding: 14px; }
  .cf-f .cf-srvp { grid-column: 1 / -1; width: 24rem; }
  .cf-f .fmh-q > summary { inset-inline-end: auto; inset-inline-start: calc(24rem + 6px); }   
  .cf-mypw { margin-right: 16px; }
  .cf-chk { grid-column: auto; margin-left: 16px; }
  .cf-r, .cf-hd { grid-template-columns: 34px 40px minmax(0, 1fr) 92px 128px 104px 112px;
    grid-template-areas: "pos emb name mem weak on pw" "pos emb sub mem weak on pw"; gap: 0 12px; padding: 8px 14px 8px 8px; }
  .cf-st { display: contents; }
  .cf-st > span:nth-child(1) { grid-area: mem; } .cf-st > span:nth-child(2) { grid-area: weak; }
  .cf-st > span:nth-child(3) { grid-area: on; }
  .cf-st i { display: none; }
  .cf-st b { font-size: 15px; }
  .cf-hd { display: grid; padding-top: 6px; padding-bottom: 6px; font-size: 12.5px; font-weight: 650; color: var(--muted);
    background: var(--bg); }
  .cf-hd span:nth-child(1) { grid-area: pos; text-align: center; } .cf-hd span:nth-child(2) { grid-area: name; }
  .cf-hd span:nth-child(3) { grid-area: mem; } .cf-hd span:nth-child(4) { grid-area: weak; }
  .cf-hd span:nth-child(5) { grid-area: on; } .cf-hd span:nth-child(6) { grid-area: pw; justify-self: end; }
  .cf-pw { font-size: 18px; }
}
.cf-card { max-width: 44rem; padding: 14px 14px 10px; }
.cf-top { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "side id" "side pw"; gap: 2px 14px;
  align-items: start; }
.cf-top .cl-side { grid-area: side; padding-top: 2px; }
.cf-top .cl-id { grid-area: id; }
.cf-top .cl-id h1 { font-size: 24px; margin: 0 0 2px; }
.cf-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; font-size: 14px; line-height: 1.35;
  color: var(--muted); }
.cf-tp { grid-area: pw; display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font: 700 30px/1 var(--gf);
  font-variant-numeric: tabular-nums; }
.cf-tp img { width: 30px; height: auto; aspect-ratio: auto 72 / 65; }
.cf-facts { display: flex; flex-wrap: wrap; gap: 8px 13px; margin: 14px 0 0;
  padding: 8px 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); overflow: hidden; }
.cf-facts > div { flex: 1 1 0; display: grid; align-content: start; gap: 2px; margin-left: -7px; padding-left: 6px;
  border-left: 1px solid var(--line); }
.cf-facts dt { font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.cf-facts dd { margin: 0; font: 700 15px/1.2 var(--font); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.cf-facts .open { color: var(--good); }
.cf-hist { margin: 8px 0 0; font-family: var(--font); }
.cf-hl { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; padding: 4px 8px; border: 0;
  border-radius: 10px; background: none; color: var(--ink); font: 400 14.5px var(--font); text-align: left; }
button.cf-hl { cursor: pointer; }
button.cf-hl:hover { background: var(--hover); }
button.cf-hl:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cf-hl .t-good { color: var(--good); } .cf-hl .t-bad { color: var(--bad); }
.cf-hl .chev { margin-left: auto; font-size: 13px; color: var(--muted); transition: transform .15s; }
.cf-hl[aria-expanded="true"] .chev { transform: rotate(180deg); }
.cf-hl .sp { display: inline-flex; flex: none; max-width: 72px; overflow: hidden; opacity: 1;
  transition: max-width .25s ease, opacity .2s ease, margin .25s ease; }
.cf-hl[aria-expanded="true"] .sp { max-width: 0; opacity: 0; margin-right: -8px; }
.cf-hl .spark { stroke: var(--s1); fill: none; stroke-width: 1.6; }
.cf-hl .spark circle { fill: var(--s1); stroke: none; }
.cf-chart { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.cf-chart > div { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .2s ease; }
.cf-chart.on { grid-template-rows: 1fr; }
.cf-chart.on > div { opacity: 1; }
.cf-chart svg { display: block; width: 100%; margin: 4px 0; overflow: visible; }
.cf-chart .g { stroke: var(--line); stroke-width: 1; }
.cf-chart .ln { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cf-chart .ar { fill: var(--s1); opacity: .14; }
.cf-chart .dt { fill: var(--s1); }
.cf-chart text { font: 11.5px var(--font); fill: var(--muted); }
.cf-chart text.end { fill: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .cf-chart, .cf-chart > div, .cf-hl .sp, .cf-hl .chev { transition: none; } }
.cf-hj { max-width: 44rem; margin: 12px 0 18px; padding: 10px 14px; border: 2px solid var(--frame); border-radius: 14px;
  background: var(--panel); }
.cf-hj h2 { margin: 0 0 4px; font-size: 17px; border: 0; padding: 0; }
.cf-hj ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 3px; }
.cf-hj li { counter-increment: s; position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.45; }
.cf-hj li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--btn); color: #fff; font: 700 12px/20px var(--font); text-align: center; }
.cf-hj .cf-small { margin: 6px 0 0; font-size: 13px; }
.cl-jn { font-weight: 700; }
@media (min-width: 760px) {
  .cf-card { padding: 18px 22px 12px; }
  .cf-top { grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "side id pw"; align-items: center; gap: 0 18px; }
  .cf-top .cl-side, .cf-top .cl-side .emb { width: 88px; }
  .cf-top .cl-id h1 { font-size: 30px; }
  .cf-meta { display: block; font-size: 15px; }
  .cf-meta > span + span::before { content: " · "; }
  .cf-tp { margin: 0; font-size: 36px; }
  .cf-tp img { width: 36px; }
  .cf-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 0; }
  .cf-facts > div { padding: 0 14px; }
  .cf-facts > div:first-child { padding-left: 4px; }
  .cf-facts dt { font-size: 13px; }
  .cf-facts dd { font-size: 18px; }
}
