/* ============================================================================
   scene-competitors.css · Competitor radar view. Reuses exec-* / mc-* styles
   from scene-exec.css (loaded alongside); adds the segment header + chips.
   ========================================================================== */
.comp { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; background: var(--softer); padding: 20px 24px 40px; }
#compRoot { max-width: 1100px; margin: 0 auto; }

.comp__head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.comp__title h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 1.2rem + .8vw, 28px); letter-spacing: -.02em; }
.comp__title p { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; max-width: 560px; line-height: 1.45; }
.comp__controls { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.comp__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.comp__ours { font-size: 13px; color: var(--text-2); }
.comp__ours b { font-family: var(--font-display); font-weight: 800; }
.comp__watch { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-left: 6px; }
.comp__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.comp-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; cursor: pointer; transition: transform .12s, background .15s, color .15s, border-color .15s; }
.comp-chip .mi { width: 12px; height: 12px; color: var(--text-soft); opacity: .55; transition: color .15s, opacity .15s, transform .15s; }
.comp-chip:hover { transform: translateY(-1px); color: var(--text-1); border-color: var(--mint); }
.comp-chip:hover .mi { color: var(--mint-700); opacity: 1; transform: translateX(2px); }
.comp__counterhint { flex-basis: 100%; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mint-700); margin-top: 2px; }

/* ---- counter-campaign cards ---- */
.comp-counters { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.comp-counter { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 15px 17px; animation: lab-up .4s cubic-bezier(.2,.7,.2,1) backwards; }
.comp-counter__load { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); }
.comp-counter__load .mi { width: 15px; height: 15px; flex: none; color: var(--mint-700); animation: nlq-spin 1s linear infinite; }
.comp-counter__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comp-counter__h > .mi { width: 17px; height: 17px; flex: none; color: var(--mint-700); }
.comp-counter__h b { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; }
.comp-counter__vs { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--danger-soft); color: #b42318; padding: 2px 9px; border-radius: 999px; }
.comp-counter__insight { display: flex; gap: 7px; align-items: flex-start; margin: 11px 0; padding: 9px 11px; border-radius: 10px; background: var(--mint-tint-2); font-size: 12.5px; line-height: 1.5; color: var(--text-1); }
.comp-counter__insight .mi { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--mint-700); }
.comp-counter__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 6px; }
.cc-field { display: flex; gap: 8px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--softer); }
.cc-field > .mi { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--mint-700); }
.cc-field span { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft); }
.cc-field b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-1); line-height: 1.4; margin-top: 1px; }
.comp-counter__src { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11.5px; font-weight: 600; color: var(--mint-700); }
.comp-counter__src .mi { width: 13px; height: 13px; }
.comp-counter__err { color: #b42318; font-size: 12.5px; }
.comp-counter__md { font-size: 13px; line-height: 1.6; margin-top: 8px; }
.comp-counter__md a { color: var(--info); text-decoration: underline; }

.comp__stages { margin-bottom: 12px; }
.comp-card { background: var(--surface); }
.comp-body { max-height: none; }
.comp-body a { color: var(--info); text-decoration: underline; text-underline-offset: 2px; }
.comp-body a:hover { color: var(--mint-ink); }
.comp-body h1, .comp-body h2, .comp-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 14px; margin: 12px 0 5px; }
.comp-body h1:first-child, .comp-body h2:first-child, .comp-body h3:first-child { margin-top: 0; }

/* ---- store-anchored map + local intelligence ---- */
.comp-btn--area .mi { width: 15px; height: 15px; }
.comp-maprow { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; margin: 4px 0 16px; }
.comp-map__wrap { position: relative; height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.comp-map { position: absolute; inset: 0; background: var(--soft); }
.comp-map__note { position: absolute; left: 10px; bottom: 10px; z-index: 500; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 10px; color: var(--text-soft); box-shadow: var(--shadow); max-width: 72%; }

.comp-pin { display: grid; place-items: center; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 2px 7px rgba(0, 0, 0, .35); font-family: var(--font-display); font-weight: 800; color: #fff; }
.comp-pin--ours { width: 40px; height: 40px; background: var(--b, var(--mint)); box-shadow: 0 0 0 4px rgba(4, 190, 140, .28), 0 3px 10px rgba(0, 0, 0, .4); }
.comp-pin--ours .mi { width: 20px; height: 20px; color: #fff; }
.comp-pin--rival { width: 30px; height: 30px; font-size: 11px; text-transform: uppercase; }
.comp-pin--rival.hi { background: var(--danger); } .comp-pin--rival.md { background: var(--warn); } .comp-pin--rival.lo { background: var(--text-soft); }

.comp-local { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 15px 16px; max-height: 460px; overflow-y: auto; }
.comp-local__h { display: flex; align-items: center; gap: 8px; }
.comp-local__h > .mi { width: 17px; height: 17px; color: var(--mint-700); flex: none; }
.comp-local__h b { font-family: var(--font-display); font-weight: 800; font-size: 14.5px; }
.comp-local__badge { margin-left: auto; font-family: var(--font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; }
.comp-local__badge.hi { background: var(--danger-soft); color: #b42318; } .comp-local__badge.md { background: var(--warn-soft); color: #92590b; } .comp-local__badge.lo { background: var(--mint-tint); color: var(--mint-ink); }
.comp-local__store { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--b, var(--mint-ink)); margin: 9px 0 4px; border-left: 3px solid var(--b, var(--mint)); padding-left: 8px; line-height: 1.35; }
.comp-local__hint { font-size: 11.5px; color: var(--text-soft); line-height: 1.5; }
.comp-local__cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--mint-700); margin-top: 8px; }
.comp-local__cta .mi { width: 14px; height: 14px; }
.comp-local__grid { display: flex; flex-direction: column; gap: 10px; margin: 11px 0; }
.comp-local__row { display: flex; gap: 9px; align-items: flex-start; }
.comp-local__row .mi { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--mint-700); }
.comp-local__row span { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-soft); }
.comp-local__row b { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-1); line-height: 1.45; margin-top: 1px; }
.comp-local__reco { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 11px; border-radius: 10px; background: var(--mint-tint-2); font-size: 12px; line-height: 1.5; color: var(--text-1); }
.comp-local__reco .mi { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--mint-700); }
.comp-local__reco b { color: var(--mint-ink); font-weight: 700; }
.comp-local__load { display: flex; gap: 8px; align-items: center; color: var(--text-soft); font-size: 12.5px; }
.comp-local__load .mi { width: 15px; height: 15px; flex: none; color: var(--mint-700); animation: nlq-spin 1s linear infinite; }

.comp__segbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }

@media (max-width: 900px) { .comp-maprow { grid-template-columns: 1fr; } .comp-local { max-height: none; } .comp-map__wrap { height: 340px; } }
@media (max-width: 720px) { .comp { padding: 14px; } .comp__controls { width: 100%; } }
