/* Spherography: the class challenges (sg_chal.js, 2026-11-09). ch- classes; the chart and the header are the ranking's
   (sg_rank.css: rk-). */
.sg-modal.chal .sg-m-card { width: min(820px, calc(100% - 24px)); }
.ch { color: #dbe6f3; font-size: .86rem; line-height: 1.45; }
.ch-tabs { display: flex; gap: 4px; padding: 3px; margin: 2px 0 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ch-tab { flex: 1 1 0; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; cursor: pointer;
  color: #9fb3c8; background: transparent; border: 1px solid transparent; font: 600 .8rem "Segoe UI", system-ui, sans-serif; }
.ch-tab.on { color: #ffd46b; background: rgba(255,212,107,.1); border-color: rgba(255,212,107,.45); }
.ch-msg { display: none; margin: 0 0 8px; padding: 7px 10px; border-radius: 10px; font-size: .8rem; }
.ch-msg.on { display: block; }
.ch-msg.ok { background: rgba(126,226,160,.1); color: #a9e6b0; }
.ch-msg.warn { background: rgba(244,162,89,.12); color: #ffd2a6; }
.ch-msg.bad { background: rgba(252,98,85,.12); color: #ffb4ac; }
.ch-msg.wait { background: rgba(255,255,255,.05); color: #9fb3c8; }
.ch-note { margin: 4px 0 10px; padding: 8px 11px; border-radius: 10px; background: rgba(255,212,107,.07); color: #ffe7a8; font-size: .8rem; }
.ch-note.warn { background: rgba(244,162,89,.1); color: #ffd2a6; }
.ch-note i { margin-right: 4px; }
.ch-hint { color: #7f93a8; font-size: .72rem; margin: 4px 0 6px; }
.ch-chart { margin-top: 4px; }
.ch-base { stroke: rgba(255,255,255,.22); }
.ch-list { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ch-row { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 10px; cursor: pointer; text-align: left;
  color: #dbe6f3; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); font: 500 .82rem "Segoe UI", system-ui, sans-serif; }
.ch-row:hover { border-color: rgba(255,212,107,.35); }
.ch-row.shown { background: rgba(255,255,255,.06); }
.ch-row.mine { border-color: rgba(255,212,107,.55); }
.ch-row.ghost { cursor: default; opacity: .8; }
.ch-row.ghost > i { color: #9fb3c8; width: 14px; }
.ch-rk { flex: 0 0 22px; color: #7f93a8; font-weight: 700; text-align: right; }
.ch-sw { flex: 0 0 14px; height: 4px; border-radius: 2px; border: 1px solid rgba(255,255,255,.18); }
.ch-row.shown .ch-sw { border-color: transparent; }
.ch-nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.ch-nm em { font-style: normal; color: #ffd46b; font-size: .7rem; margin-left: 4px; }
.ch-dd { color: #7f93a8; font-size: .72rem; white-space: nowrap; }
.ch-ret { min-width: 62px; text-align: right; font: 700 .9rem Oxanium, "Segoe UI", sans-serif; color: #dbe6f3; }
.ch-ret.up { color: #7ee2a0; }
.ch-ret.down { color: #ff9a8f; }
.ch-sec { margin: 14px 0 2px; color: #9fb3c8; font-size: .66rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.ch-card { margin: 0 0 10px; padding: 12px 13px; border-radius: 13px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); }
.ch-card.inv { border-color: rgba(88,196,221,.5); background: rgba(88,196,221,.07); }
.ch-card-t { color: #cfefff; font-weight: 650; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.ch-card-t i { color: #ffd46b; }
.ch-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.ch-head .ch-ret { margin-left: auto; }
.ch-fname { color: #fff; font: 700 1.02rem Oxanium, "Segoe UI", sans-serif; }
.ch-small { color: #9fb3c8; font-size: .76rem; margin: 2px 0; }
.ch-sub { margin: 10px 0 2px; color: #cfefff; font-size: .78rem; font-weight: 650; }
.ch-from { color: #b9c8d8; font-size: .78rem; margin: 2px 0 4px; }
.ch-hold { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.ch-hold span { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); font-size: .74rem; color: #dbe6f3; }
.ch-hold span b { color: #fff; }
.ch-hold span.cash { color: #9fb3c8; }
.ch-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ch-form.end { justify-content: flex-end; }
.ch-in { flex: 1 1 180px; min-width: 0; min-height: 38px; padding: 6px 10px; border-radius: 10px; color: #fff; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14); font: 500 .84rem "Segoe UI", system-ui, sans-serif; color-scheme: dark; }
.ch-in:focus { outline: none; border-color: rgba(255,212,107,.6); }
.ch-sel option { background: #0b1220; color: #fff; }
.ch-link { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: #58c4dd; font: 600 .76rem "Segoe UI", system-ui, sans-serif; }
.ch-link.danger { color: #ff9a8f; }
.ch-chip { padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 650; color: #ffd2a6; background: rgba(244,162,89,.12); border: 1px solid rgba(244,162,89,.4); }
.ch-chip.ok { color: #a9e6b0; background: rgba(126,226,160,.1); border-color: rgba(126,226,160,.45); }
.ch-mems { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 2px; }
.ch-mem { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 9px; background: rgba(255,255,255,.03); }
.ch-at { color: #fff; font-weight: 600; min-width: 90px; }
.ch-at i { color: #ffd46b; font-size: .7rem; }
.ch-mem .ch-small { flex: 1 1 auto; margin: 0; }
@media (max-width: 560px) {
  .sg-modal.chal .sg-m-card { width: calc(100% - 10px); padding: 14px 10px; }
  .ch-tab { font-size: .76rem; }
  .ch-dd { display: none; }
  .ch-form .sg-btn { flex: 1 1 auto; }
}

/* choosing the participating algorithm (2026-11-09) */
.ch-join { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 12px 13px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,212,107,.12), rgba(255,212,107,.04)); border: 1px solid rgba(255,212,107,.45); }
.ch-join > i { font-size: 1.4rem; color: #ffd46b; }
.ch-join > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-join b { color: #fff; }
.ch-join span { color: #c9d6e3; font-size: .78rem; }
.ch-steps { margin: 4px 0 6px; padding-left: 20px; color: #c9d6e3; font-size: .78rem; display: flex; flex-direction: column; gap: 3px; }
.ch-steps li::marker { color: #ffd46b; font-weight: 700; }
.ch-picks-t { margin: 10px 0 4px; color: #9fb3c8; font-size: .74rem; }
.ch-picks { display: flex; flex-direction: column; gap: 5px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.ch-pick { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 11px; cursor: pointer; text-align: left;
  color: #dbe6f3; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); font: 500 .8rem "Segoe UI", system-ui, sans-serif; }
.ch-pick:hover { border-color: rgba(255,212,107,.4); }
.ch-pick.on { border-color: #ffd46b; background: rgba(255,212,107,.1); }
.ch-radio { flex: 0 0 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.ch-pick.on .ch-radio { border-color: #ffd46b; background: radial-gradient(circle, #ffd46b 45%, transparent 50%); }
.ch-pick-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ch-pick-b b { color: #fff; }
.ch-pick .ch-hold { margin: 3px 0 0; }
.ch-go[disabled] { opacity: .5; cursor: default; }
@media (max-width: 560px) { .ch-join { flex-wrap: wrap; } .ch-join .sg-btn { width: 100%; } }
