/* 比一比：左邊一欄是項目名稱（捲動時固定），右邊每盒一欄 */
.cp-main { max-width: 1360px; --lbl: 140px; --col: 210px; }
.cp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.cp-head h1 { margin: 0; font-size: 30px; }
.cp-head .sp-note { flex: 1 1 320px; margin: 0; }
.cp-tools { display: flex; gap: 8px; }
.cp-scroll { margin-top: 18px; overflow-x: auto; border-radius: 18px; border: 1px solid rgba(176,208,255,.14); background: rgba(255,255,255,.025); scrollbar-width: thin; }
.cp-grid { display: grid; min-width: min-content; }
.cp-cell { padding: 12px 14px; border-bottom: 1px solid rgba(176,208,255,.1); border-left: 1px solid rgba(176,208,255,.07); font-size: 15px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.cp-cell small { color: var(--muted); font-size: 12px; }
.cp-cell .big { font: 900 26px/1 var(--font); }
.cp-cell .up { color: var(--coral); }
.cp-cell .dim { color: var(--faint); }
.cp-lbl { position: sticky; left: 0; z-index: 2; background: #0f1b33; color: var(--muted); font-size: 13.5px; font-weight: 600; border-left: 0; }
.cp-lbl.axis { padding-left: 26px; font-weight: 500; }
.cp-lbl { word-break: keep-all; }   /* 中文標籤只在 <wbr> 換行，「偶」不會單獨一行 */
.cp-tools button:disabled { opacity: .45; cursor: default; }
.cp-corner { border-bottom-color: transparent; }
.cp-top { padding: 14px; justify-content: flex-start; gap: 10px; border-top: 4px solid var(--c, transparent); }
.cp-card { display: block; position: relative; width: 100%; max-width: 200px; margin: 0 auto; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; }
.cp-card .cf-box { position: absolute; inset: 0; width: 100%; }
.cp-card .cf-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.cp-name { text-decoration: none; font-weight: 700; line-height: 1.35; text-align: center; }
.cp-name span { display: block; color: var(--c, var(--mint)); font-size: 13px; }
.cp-x { position: absolute; top: 8px; right: 8px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(8,14,28,.75); color: #fff; font-size: 18px; cursor: pointer; }
.cp-add { align-items: center; justify-content: center; }
.cp-add button { width: 100%; max-width: 200px; aspect-ratio: 2 / 3; border-radius: 12px; border: 2px dashed rgba(143,182,255,.35); background: rgba(143,182,255,.05); color: var(--sky); font: 700 17px var(--font); cursor: pointer; }
.cp-add button:hover { background: rgba(143,182,255,.12); }
.cp-cell.best { background: color-mix(in srgb, var(--c) 12%, transparent); }
.cp-best { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #06131f; }
.cp-cell .bar { display: block; height: 8px; border-radius: 4px; background: rgba(176,208,255,.14); overflow: hidden; }
.cp-cell .bar i { display: block; height: 100%; border-radius: 4px; background: var(--c); }
.cp-radar-wrap h2 { font-size: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cp-radar-wrap h2 small { font-size: 13px; color: var(--muted); font-weight: 500; }
.cp-radar { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 24px; align-items: center; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(176,208,255,.1); }
.cp-radar svg { width: 100%; }
.cp-radar .grid { fill: none; stroke: rgba(176,208,255,.16); }
.cp-radar .lbl { fill: #cfdaee; font-size: 14px; font-weight: 600; }
.cp-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cp-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.cp-legend i { width: 22px; height: 6px; border-radius: 3px; background: var(--c); flex: none; }
.cp-legend b { color: var(--c); margin-right: 4px; }
html.theme-light .cp-scroll, html.theme-light .cp-radar { background: #fff; border-color: var(--panel-line); }
html.theme-light .cp-cell { border-color: rgba(24,48,96,.08); }
html.theme-light .cp-lbl { background: #f2f6fb; }
html.theme-light .cp-radar .grid { stroke: rgba(24,48,96,.16); }
html.theme-light .cp-radar .lbl { fill: #2b3b58; }
html.theme-light .cp-cell .bar { background: rgba(24,48,96,.1); }
html.theme-light .cp-best { color: #fff; }
@media (max-width: 900px) {
  .cp-main { --lbl: 92px; --col: 150px; }
  .cp-lbl { font-size: 12px; padding: 10px 8px; } .cp-lbl.axis { padding-left: 14px; }
  .cp-cell { padding: 10px; font-size: 14px; }
  .cp-radar { grid-template-columns: 1fr; }
  .cp-head h1 { font-size: 24px; }
}
