/* ============================================================================
   Champion Signals Cockpit — token-driven, mobile-first.
   No new colours, no new spacings, no new fonts. Every selector hits a token.

   Sections:
     1.  Layout shell
     2.  Hunt hero (state-of-the-hunt headline + pulse cards)
     3.  Section chrome (eyebrow + lede)
     4.  Trinity cockpit (monitors)
         4a. Monitor card frame + per-tag accents
         4b. State badges (DORMANT / FORMING / ARMED / TRIGGERED)
         4c. Gate LEDs
         4d. Threat board
         4e. Hunt terminal
     5.  Pressure radar
     6.  Archive (stats, filters, signal feed reuse)
     7.  Protocol notes
     8.  Reduced motion + light-theme parity
   ============================================================================ */

/* ─── 1. LAYOUT SHELL ─────────────────────────────────────────────────────── */
.cockpit {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--sp-32) var(--sp-16) var(--sp-24);
    display: flex;
    flex-direction: column;
    gap: var(--sp-48);
    text-align: center;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}
.cockpit *,
.cockpit *::before,
.cockpit *::after { box-sizing: border-box; min-width: 0; }

.section-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: var(--sp-8);
    opacity: 0.95;
    text-align: center;
}
.section-lede {
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto var(--sp-24);
    text-align: center;
}

/* ─── 2. HUNT HERO ────────────────────────────────────────────────────────── */
.hunt-hero {
    padding: var(--sp-32) 0 var(--sp-16);
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.hunt-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: var(--sp-16);
}
.hunt-headline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.75rem, 5.5vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin: 0 auto var(--sp-16);
    max-width: 22ch;
}
.hunt-headline #hunt-hours {
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
}
.hunt-subhead {
    font-size: var(--fs-20);
    line-height: 1.45;
    color: var(--text-primary);
    margin: 0 auto var(--sp-8);
    max-width: 42ch;
    font-weight: 500;
}
.hunt-subhead #hunt-bars {
    color: var(--accent-cyan);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 700;
}
.hunt-tagline {
    font-size: var(--fs-14);
    color: var(--text-muted);
    margin: 0 auto var(--sp-32);
    font-style: italic;
    letter-spacing: 0.01em;
}

.hunt-pulse {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
}
@media (min-width: 720px) {
    .hunt-pulse { grid-template-columns: repeat(4, 1fr); gap: var(--sp-16); }
}
.pulse-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: var(--sp-16);
    position: relative;
    overflow: hidden;
}
.pulse-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 3px; height: 100%;
    background: var(--accent-gold);
    opacity: 0.45;
}
.pulse-lbl {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--sp-8);
}
.pulse-val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-28);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.pulse-sub {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: var(--sp-8);
    text-transform: uppercase;
}

/* ─── 4. TRINITY COCKPIT ──────────────────────────────────────────────────── */
.cockpit-section { display: flex; flex-direction: column; }
.cockpit-section .section-eyebrow,
.cockpit-section .section-lede { text-align: center; }
.monitors {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-16);
}
@media (min-width: 980px) {
    .monitors { grid-template-columns: repeat(3, 1fr); gap: var(--sp-16); }
}

/* 4a · Monitor frame */
.monitor {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: var(--sp-16);
    display: flex;
    flex-direction: column;
    gap: var(--sp-16);
    position: relative;
    transition: border-color var(--duration-ui) var(--ease-out);
    text-align: left;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
.monitor-thesis,
.monitor-name { overflow-wrap: anywhere; }
.monitor::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    opacity: 0.35;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.monitor--silver   { color: var(--accent-silver); }
.monitor--gold     { color: var(--accent-gold); }
.monitor--platinum { color: var(--accent-cyan); }

.monitor-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-8);
}
.monitor-rank {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: currentColor;
}
.monitor-name {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    flex: 1 1 100%;
    word-break: break-word;
    line-height: 1.3;
}
.monitor-thesis {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* 4b · State badge */
.monitor-state {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: rgba(245, 245, 250, 0.02);
    white-space: nowrap;
}
.monitor-state[data-state="DORMANT"]   { color: var(--text-muted); border-color: var(--border); }
.monitor-state[data-state="FORMING"]   { color: var(--accent-cyan);   border-color: var(--accent-cyan);   background: rgba(62,168,245,0.08); }
.monitor-state[data-state="ARMED"]     { color: var(--accent-gold);   border-color: var(--accent-gold);   background: rgba(255,215,0,0.08); }
.monitor-state[data-state="TRIGGERED"] {
    color: #0a0a0f; border-color: var(--accent-gold);
    background: var(--accent-gold);
    animation: monitor-pulse 1.4s ease-in-out infinite;
}
@keyframes monitor-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.55); }
    50%      { box-shadow: 0 0 0 8px rgba(255,215,0,0.00); }
}

/* 4c · Gate LEDs */
.monitor-leds {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-8);
    padding-top: 2px;
}
.led {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 6px;
    border-radius: var(--radius-button);
    border: 1px solid var(--border);
    background: rgba(245, 245, 250, 0.02);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--duration-ui) var(--ease-out),
                border-color var(--duration-ui) var(--ease-out),
                background var(--duration-ui) var(--ease-out);
}
.led::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    box-shadow: 0 0 0 2px rgba(245, 245, 250, 0.04);
    flex-shrink: 0;
}
.led--pass {
    color: var(--text-primary);
    border-color: currentColor;
    background: rgba(78, 205, 196, 0.06);
}
.led--pass::before {
    background: #4ecdc4;
    box-shadow: 0 0 6px rgba(78, 205, 196, 0.55);
}
.led--fail {
    color: var(--text-muted);
}
.led--fail::before {
    background: rgba(245, 245, 250, 0.20);
    box-shadow: none;
}

/* 4d · Threat board */
.monitor-board {
    border-top: 1px solid var(--border);
    padding-top: var(--sp-16);
}
.board-head {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--sp-8);
    display: flex;
    align-items: baseline;
    gap: var(--sp-8);
    flex-wrap: wrap;
}
.board-sub {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 400;
}
.board-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.board-row {
    display: grid;
    grid-template-columns: minmax(3.6rem, max-content) minmax(0, 1fr) minmax(2.5rem, max-content);
    gap: var(--sp-8);
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(245, 245, 250, 0.02);
    transition: transform var(--duration-ui) var(--ease-spring),
                background var(--duration-ui) var(--ease-out);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem;
    overflow: hidden;
}
.board-row .board-sym { overflow-wrap: anywhere; word-break: break-all; }
.board-row[data-state="ARMED"]     { background: rgba(255, 215, 0, 0.08); }
.board-row[data-state="TRIGGERED"] { background: rgba(255, 215, 0, 0.15); }
.board-row .board-sym {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.board-row .board-bar {
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(245, 245, 250, 0.06);
    overflow: hidden;
    position: relative;
}
.board-row .board-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--fill, 0%);
    background: currentColor;
    opacity: 0.78;
    border-radius: var(--radius-pill);
    transition: width var(--duration-hero) var(--ease-spring);
}
.board-row .board-pct {
    color: currentColor;
    text-align: right;
    font-weight: 700;
    font-size: 0.68rem;
}
.board-empty {
    padding: var(--sp-24);
    text-align: center;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    border: 1px dashed var(--border);
    border-radius: var(--radius-card);
}

/* 4e · Hunt terminal */
.monitor-term {
    border-top: 1px solid var(--border);
    padding-top: var(--sp-16);
}
.term-head {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: currentColor;
    opacity: 0.6;
    margin-bottom: 6px;
}
.term-body {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    line-height: 1.55;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: var(--sp-8);
    height: 8.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    max-width: 100%;
}
.term-line {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--duration-ui) var(--ease-out);
    max-width: 100%;
}
.term-line .term-tag      { color: var(--text-muted); }
.term-line.term--reject   { color: var(--text-muted); opacity: 0.78; }
.term-line.term--forming  .term-tag { color: var(--accent-cyan); }
.term-line.term--armed    .term-tag { color: var(--accent-gold); }
.term-line.term--strike   { color: var(--accent-gold); font-weight: 700; }

/* ─── 5. PRESSURE RADAR ───────────────────────────────────────────────────── */
.pressure {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: var(--sp-24);
    text-align: left;
}
.pressure .section-eyebrow,
.pressure .section-lede { text-align: center; }
.pressure-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}
@media (min-width: 720px) {
    .pressure-body { grid-template-columns: repeat(2, 1fr); column-gap: var(--sp-24); }
}
.pressure-row {
    display: grid;
    grid-template-columns: minmax(3.6rem, max-content) minmax(0, 1fr) minmax(1.8rem, max-content);
    gap: var(--sp-8);
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    overflow: hidden;
}
.pressure-row .p-sym { overflow-wrap: anywhere; word-break: break-all; }
.pressure-row .p-sym  { color: var(--text-primary); font-weight: 700; letter-spacing: 0.04em; }
.pressure-row .p-bar  { height: 5px; border-radius: var(--radius-pill); background: rgba(245,245,250,0.05); position: relative; overflow: hidden; }
.pressure-row .p-fill { position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: linear-gradient(90deg, var(--accent-silver), var(--accent-gold), var(--accent-cyan)); opacity: 0.85; border-radius: var(--radius-pill); transition: width var(--duration-hero) var(--ease-spring); }
.pressure-row .p-pct  { text-align: right; color: var(--text-muted); }

/* ─── 6. ARCHIVE ──────────────────────────────────────────────────────────── */
.archive { display: flex; flex-direction: column; text-align: left; }
.archive .section-eyebrow,
.archive .section-lede { text-align: center; }
.archive-filters { justify-content: center; }
#champ-signal-feed { text-align: left; }
.archive-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-8);
    margin-bottom: var(--sp-16);
}
@media (min-width: 720px) {
    .archive-stats { grid-template-columns: repeat(6, 1fr); gap: var(--sp-8); }
}
.stat {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: var(--sp-8) var(--sp-16);
    text-align: center;
}
.stat-lbl {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.55rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.stat-val {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-20);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.stat-green { color: #4ecdc4; }
.stat-red   { color: #ef4444; }
.stat-cyan  { color: var(--accent-cyan); }
.stat-gold  { color: var(--accent-gold); }

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--sp-16);
}
.chip {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--duration-ui) var(--ease-out), border-color var(--duration-ui) var(--ease-out), background var(--duration-ui) var(--ease-out);
}
.chip:hover  { border-color: var(--accent-cyan); color: var(--text-primary); }
.chip.active { border-color: var(--accent-cyan); color: var(--accent-cyan); background: rgba(62,168,245,0.08); }

/* Compact archive row — rebuild of legacy .champ-sig in cockpit aesthetic */
.champ-sig {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    margin-bottom: 6px;
    transition: border-color var(--duration-ui) var(--ease-out);
    overflow: hidden;
}
.champ-sig.is-open  { border-color: var(--accent-cyan); }
.champ-sig-head {
    cursor: pointer;
    display: grid;
    grid-template-columns: 4.5rem minmax(0,1fr) 6rem 4rem;
    gap: var(--sp-8);
    padding: 10px 14px;
    align-items: center;
    user-select: none;
}
.champ-sig-head > * { pointer-events: none; }
.cs-ago {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    color: var(--text-muted);
}
.cs-body { min-width: 0; }
.cs-body-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-dir {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem; font-weight: 800;
    letter-spacing: 0.12em;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.cs-dir-long  { color: #4ecdc4; background: rgba(78,205,196,0.10); }
.cs-dir-short { color: #ef4444; background: rgba(239,68,68,0.10); }
.cs-symbol {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.9rem; font-weight: 800;
    color: var(--text-primary);
}
.cs-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.58rem; color: var(--text-muted);
    letter-spacing: 0.04em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 100%;
}
.cs-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem; color: var(--text-muted);
    margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-status {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem; letter-spacing: 0.12em;
    text-align: right; white-space: nowrap;
}
.cs-toggle {
    text-align: right; color: var(--accent-cyan);
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    letter-spacing: 0.06em; white-space: nowrap;
}
@media (max-width: 640px) {
    .champ-sig-head {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "body   toggle"
            "ago    status";
        gap: 6px var(--sp-8);
        padding: 10px var(--sp-8);
    }
    .cs-body   { grid-area: body; }
    .cs-toggle { grid-area: toggle; }
    .cs-ago    { grid-area: ago; }
    .cs-status { grid-area: status; text-align: right; }
    .cs-meta { white-space: normal; }
}

.champ-sig-body {
    padding: 0 var(--sp-16) var(--sp-16);
    border-top: 1px solid var(--border);
}

/* ─── 7. PROTOCOL NOTES ───────────────────────────────────────────────────── */
.protocol {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: var(--sp-24);
    text-align: center;
}
.protocol-card { text-align: center; }
.protocol-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-16);
}
@media (min-width: 720px) {
    .protocol-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-24); }
}
@media (min-width: 980px) {
    .protocol-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-24); }
}
.protocol-card-head {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: var(--sp-8);
}
.protocol-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}
.protocol-card a {
    color: var(--accent-cyan);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}
.protocol-card a:hover { color: var(--text-primary); }

/* ─── STRIKE ALERT — fire state ───────────────────────────────────────────── */
.strike-alert {
    position: relative;
    padding: var(--sp-24) var(--sp-32);
    border-radius: var(--radius-card);
    border: 1px solid var(--accent-gold);
    background:
        radial-gradient(80% 140% at 0% 100%, rgba(255, 60, 0, 0.22), transparent 70%),
        radial-gradient(80% 140% at 100% 0%, rgba(255, 215, 0, 0.18), transparent 70%),
        linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 60, 0, 0.04));
    color: var(--text-primary);
    overflow: hidden;
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: var(--sp-16);
    align-items: center;
    text-align: left;
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.20),
        0 0 24px -4px rgba(255, 140, 0, 0.45),
        inset 0 0 32px -8px rgba(255, 80, 0, 0.18);
    animation: strike-breathe 2.6s ease-in-out infinite;
}
@keyframes strike-breathe {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(255, 215, 0, 0.20),
            0 0 18px -4px rgba(255, 140, 0, 0.40),
            inset 0 0 24px -8px rgba(255, 80, 0, 0.16);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(255, 215, 0, 0.42),
            0 0 38px -2px rgba(255, 140, 0, 0.65),
            inset 0 0 44px -6px rgba(255, 80, 0, 0.30);
    }
}

.strike-flame {
    position: relative;
    width: 4rem; height: 4rem;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.strike-flame span {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1.6rem; height: 2.6rem;
    margin-left: -0.8rem;
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    background: radial-gradient(50% 70% at 50% 80%,
                                #fff7c2 0%, #ffd700 28%, #ff8c00 60%, #ff3c00 90%);
    filter: blur(0.5px);
    animation: flame-flicker 1.3s ease-in-out infinite;
    transform-origin: 50% 100%;
    opacity: 0.85;
}
.strike-flame span:nth-child(1) { animation-delay: 0.00s; transform: scale(1.00); }
.strike-flame span:nth-child(2) { animation-delay: 0.18s; width: 1.1rem; height: 2.0rem; margin-left: -0.55rem; opacity: 0.75; }
.strike-flame span:nth-child(3) { animation-delay: 0.36s; width: 0.8rem; height: 1.5rem; margin-left: -0.4rem; opacity: 0.65; background: radial-gradient(50% 70% at 50% 80%, #fff 0%, #fff5a0 35%, #ffae00 75%, #ff5a00 95%); }
.strike-flame span:nth-child(4) { animation-delay: 0.54s; width: 0.55rem; height: 1.0rem; margin-left: -0.275rem; opacity: 0.6; }
.strike-flame span:nth-child(5) { animation-delay: 0.72s; width: 0.35rem; height: 0.7rem; margin-left: -0.175rem; opacity: 0.55; background: radial-gradient(50% 70% at 50% 80%, #fff 0%, #fffbe0 60%, #ffdc4a 100%); }
@keyframes flame-flicker {
    0%, 100% { transform: scaleY(1.0)  scaleX(1.0)  translateY(0);    opacity: 0.85; }
    25%      { transform: scaleY(1.18) scaleX(0.92) translateY(-2px); opacity: 0.95; }
    50%      { transform: scaleY(0.92) scaleX(1.06) translateY(0);    opacity: 0.78; }
    75%      { transform: scaleY(1.10) scaleX(0.96) translateY(-1px); opacity: 0.92; }
}

.strike-body { min-width: 0; }
.strike-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: var(--fs-12);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 4px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}
.strike-headline {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}
.strike-meta {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

/* Monitor STRIKE state — escalates beyond TRIGGERED with flame and shake. */
.monitor-state[data-state="STRIKE"] {
    color: #fff;
    border-color: #ff3c00;
    background: linear-gradient(135deg, #ff8c00, #ff3c00);
    text-shadow: 0 0 8px rgba(0,0,0,0.4);
    animation: monitor-strike 0.9s ease-in-out infinite;
}
@keyframes monitor-strike {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 60, 0, 0.65); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 60, 0, 0.0); }
}

/* ─── 8. REDUCED MOTION + LIGHT-THEME PARITY ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .monitor-state[data-state="TRIGGERED"],
    .monitor-state[data-state="STRIKE"],
    .strike-alert,
    .strike-flame span { animation: none !important; }
    .board-row, .led, .board-bar-fill, .p-fill { transition: none !important; }
    .term-line { transition: none !important; }
}

[data-theme="light"] .term-body { background: rgba(0,0,0,0.04); }
[data-theme="light"] .pulse-card::before { opacity: 0.85; }
[data-theme="light"] .led--pass { background: rgba(78, 205, 196, 0.10); }
