/* Interactive indicator demo on /indicator. CSP: style-src 'self' — all
   presentation lives here; the JS only toggles data-attributes and positions
   overlays via CSS custom properties set per element (style attribute is
   forbidden — positions are applied through element.style.setProperty on
   `top`, which CSP does not block since it is a CSSOM write, not inline
   markup). Colors mirror the real extension palette. */
.idemo { max-width: 1080px; margin: 26px auto 8px; padding: 0 20px; }
.idemo__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.idemo__title { font-size: 22px; font-weight: 800; color: #ecedef; margin: 0; }
.idemo__note { color: #9c9fa8; font-size: 13px; }

.idemo__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.idemo__chip { border: 1px solid #26221b; background: #18130c; color: #9c9fa8; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.idemo__chip:hover { color: #ecedef; border-color: #3a342a; }
.idemo__chip[aria-pressed="true"] { color: #1a1408; background: #c8a878; border-color: #c8a878; }
.idemo__chip--adv[aria-pressed="true"] { background: #69c2ff; border-color: #69c2ff; }

.idemo__stage { position: relative; height: 440px; border: 1px solid #26221b; border-radius: 14px; overflow: hidden; background: #0d1117; }
.idemo__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.idemo__line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.6px solid; pointer-events: none; }
.idemo__line--dashed { border-top-style: dashed; }
.idemo__label { position: absolute; right: 8px; transform: translateY(-50%); font: 600 11px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; padding: 1px 7px; border-radius: 4px; background: rgba(9,14,22,.88); border: 1px solid; pointer-events: none; white-space: nowrap; }
.idemo__zone { position: absolute; left: 0; right: 0; pointer-events: none; }
.idemo__zone--battle { background: rgba(246,180,95,.10); border-top: 1px dashed rgba(246,180,95,.45); border-bottom: 1px dashed rgba(246,180,95,.45); }
.idemo__zone--void { background: repeating-linear-gradient(135deg, rgba(246,180,95,.14) 0 6px, transparent 6px 12px); border-top: 1px dashed rgba(246,180,95,.5); border-bottom: 1px dashed rgba(246,180,95,.5); }

.idemo [hidden] { display: none; }

.idemo__foot { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #9c9fa8; font-size: 13px; }
.idemo__foot a { color: #e0c79a; font-weight: 700; }
@media (max-width: 640px) { .idemo__stage { height: 360px; } }
