/* PCone compare-final — additions for the 375-model engine */
body { font-family: 'Rubik', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }

/* pickers */
.model-select-wrap { position: relative; min-width: 0; flex: 0 1 430px; }
.model-select-wrap > span:first-child { white-space: nowrap; }
.model-select-wrap select { max-width: 100%; min-width: 0; flex: 1 1 auto; }
.model-select-wrap select optgroup { background: #0b1120; color: #94a3b8; font-weight: 800; }
.cf-search {
  flex: 0 0 104px; width: 104px; background: rgba(255,255,255,.06); border: 1px solid var(--border-glass);
  color: #fff; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: .86rem; min-width: 0;
}
.cf-search::placeholder { color: #64748b; }
.cf-swap { font-size: 1.15rem; padding: 10px 14px; }

/* popular pairs */
.cf-pairs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: -6px auto 26px; max-width: 1000px; font-size: .82rem; }
.cf-pairs-l { color: var(--text-muted); font-weight: 700; }
.cf-count { background: rgba(16,185,129,.14); color: #34d399; border: 1px solid rgba(16,185,129,.35); padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.cf-pair { background: rgba(255,255,255,.05); border: 1px solid var(--border-glass); color: #cbd5e1; padding: 5px 12px; border-radius: 999px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: .2s; }
.cf-pair:hover { border-color: #64748b; color: #fff; }
.cf-pair.active { border-color: var(--accent-p1); color: #fde68a; background: rgba(245,158,11,.12); }
.cf-err { max-width: 640px; margin: 0 auto 20px; padding: 14px 18px; border-radius: 12px; border: 1px solid #ef4444; background: rgba(239,68,68,.12); text-align: center; }
.cf-err button { margin-top: 8px; background: #ef4444; color: #fff; border: 0; border-radius: 8px; padding: 6px 16px; font: inherit; font-weight: 700; cursor: pointer; }

/* real photo tile */
.phone-stage { position: relative; width: 100%; }
.cf-photo { position: absolute; bottom: 4px; inset-inline-start: 6px; width: 62px; height: 82px; margin: 0; background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 8px 22px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.7); z-index: 4; }
.fighter-card.p1 .cf-photo { border-color: var(--accent-p1); }
.fighter-card.p2 .cf-photo { border-color: var(--accent-p2); }
.cf-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cf-photo[hidden] { display: none; }
.cf-body { font-size: .65rem; color: rgba(255,255,255,.55); text-align: center; padding: 0 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fighter-title { text-align: center; }

/* verdict */
.cf-verdict { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-glass); text-align: center; }
.cf-verdict h4 { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cf-verdict p { font-size: .95rem; font-weight: 700; line-height: 1.4; }
.cf-verdict small { display: block; margin-top: 6px; font-size: .76rem; color: #a8b6c9; line-height: 1.45; }
.reason-list .cf-none { color: var(--text-muted); }

/* camera */
#camViewport { direction: ltr; background: #0b1120; }
.cam-layer { overflow: hidden; }
#camLayerP2 { justify-content: flex-start; }
#camLayerP1 { justify-content: space-between; }
.cf-cam-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 58% 46%; transition: transform .5s cubic-bezier(.22,1,.36,1), filter .4s; z-index: 0; }
.cf-noise { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: overlay; opacity: 0; transition: opacity .3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cam-tag-pill { position: relative; z-index: 2; background: rgba(9,13,22,.78); backdrop-filter: blur(6px); }
.cf-note { text-align: center; color: #64748b; font-size: .8rem; margin-top: 8px; }

/* bars: winner */
.spec-duel-top .cf-win b { color: #fff; }
.spec-duel-top .cf-v1.cf-win b::after, .spec-duel-top .cf-v2.cf-win b::after { content: ' ✓'; color: #34d399; }
.bar-fill-p1.cf-win { box-shadow: 0 0 14px rgba(245,158,11,.55); }
.bar-fill-p2.cf-win { box-shadow: 0 0 14px rgba(59,130,246,.55); }

/* full table */
.cf-table-card { margin-top: 22px; }
.cf-tblh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.cf-tblh h3 { font-size: 1.15rem; }
.cf-tblh small { color: var(--text-muted); font-size: .8rem; }
.cf-tr { display: grid; grid-template-columns: minmax(110px, .8fr) 1fr 1fr; gap: 12px; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .9rem; align-items: center; }
.cf-tr:last-child { border-bottom: 0; }
.cf-tr > span:first-child { color: var(--text-muted); font-weight: 700; font-size: .84rem; }
.cf-th { font-weight: 800; font-size: .95rem; border-bottom: 1px solid var(--border-glass); }
.cf-tr .cf-win { color: #93c5fd; font-weight: 800; }
.cf-tr .cf-win::before { content: '● '; color: #3b82f6; font-size: .7em; vertical-align: middle; }
.cf-tr span { overflow-wrap: anywhere; }

/* lab */
.cf-notes { list-style: none; margin: 22px 0 0; display: grid; gap: 8px; font-size: .86rem; color: #cbd5e1; }
.cf-notes li { padding: 10px 14px; border-radius: 10px; background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.22); }
.cf-proj { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 14px; font-size: .86rem; }
.cf-proj b { color: #fff; }
.cf-proj a { color: #93c5fd; }
.cf-proj a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .model-select-wrap { flex: 1 1 100%; flex-wrap: wrap; row-gap: 6px; }
  .model-select-wrap select { flex: 1 1 0; }
  .cf-search { flex: 1 1 100%; width: auto; }
  .cf-tr { grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 10px 2px; }
  .cf-tr > span:first-child { grid-column: 1 / -1; font-size: .76rem; }
  .cf-th > span:first-child { display: none; }
  .cf-photo { width: 48px; height: 64px; border-radius: 10px; }
  .cf-pairs { gap: 6px; }
  .cf-pair { font-size: .74rem; padding: 4px 10px; }
  .cam-tag-pill { font-size: .7rem; padding: 4px 8px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
#radarSvg{overflow:visible;max-width:100%}
