/* ==========================================================================
   Evidence Board (conspiracy wall)
   ========================================================================== */

.evidence-board {
    position: relative;
    width: 100%;
    min-height: 520px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 20%),
        repeating-linear-gradient(90deg, #151920 0, #151920 39px, #1a2029 40px),
        repeating-linear-gradient(0deg, #151920 0, #151920 39px, #1a2029 40px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.6);
}

.evidence-threads {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.evidence-nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.evidence-node {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 180px;
    transition: transform 0.2s;
    cursor: pointer;
}

.evidence-node:hover {
    transform: translate(-50%, -50%) scale(1.03);
    z-index: 10;
}

.evidence-pin {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 auto -6px;
    position: relative;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.evidence-card {
    background: rgba(21, 25, 32, 0.92);
    border: 1px solid var(--border);
    border-top-width: 3px;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(4px);
}

.evidence-card h4 {
    margin: 0 0 0.35rem;
    font-size: 0.82rem;
    color: var(--text);
    line-height: 1.3;
}

.evidence-card p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evidence-icon {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    opacity: 0.85;
}

.evidence-sprite {
    margin-bottom: 0.35rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.evidence-node:nth-child(odd) .evidence-card {
    transform: rotate(-1deg);
}

.evidence-node:nth-child(even) .evidence-card {
    transform: rotate(1deg);
}

.evidence-node:hover .evidence-card {
    transform: rotate(0deg);
}

@media (max-width: 768px) {
    .evidence-board {
        min-height: 700px;
    }
    .evidence-node {
        width: 140px;
    }
}

/* Python notebook UI for Phase 4 skills */

.notebook-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: #161b22;
    border-bottom: 1px solid var(--border);
}


















@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Live page boot animation */
.live-boot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    text-align: center;
    padding: 2rem;
    gap: 1.25rem;
}

.live-boot h2 {
    margin: 0;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.live-boot .boot-entropy {
    position: relative;
    width: 120px;
    height: 120px;
}

.live-boot .boot-entropy.sprite {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: entropyPulse 2s ease-in-out infinite;
}

.live-boot .boot-entropy .entropy-aura {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 240, 0.25) 0%, transparent 70%);
    animation: auraPulse 2.4s ease-in-out infinite;
}

.live-boot .boot-entropy .entropy-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.6;
    animation: ringSpin 3s linear infinite;
}

.live-boot-terminal {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--accent);
    text-align: left;
    min-width: 280px;
    box-shadow: var(--shadow);
}

.boot-line {
    opacity: 0;
    animation: bootLineIn 0.4s ease forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.1s; }
.boot-line:nth-child(2) { animation-delay: 0.5s; }
.boot-line:nth-child(3) { animation-delay: 0.9s; }
.boot-line:nth-child(4) { animation-delay: 1.3s; }

.live-boot-hint {
    color: var(--muted);
    max-width: 420px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes entropyPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 240, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 0 20px 6px rgba(0, 212, 240, 0.15); }
}

@keyframes auraPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes ringSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bootLineIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Live status bar transition */
.live-status-bar {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Live entropy warning state */
.live-entropy-panel.warning {
    animation: liveEntropyWarning 0.8s ease-in-out;
}

@keyframes liveEntropyWarning {
    0%, 100% { box-shadow: inset 0 0 0 0 rgba(255, 82, 82, 0); }
    50% { box-shadow: inset 0 0 24px 4px rgba(255, 82, 82, 0.25); }
}

/* /live: the spectate page is a read-only demo. The case and the sheet take no clicks, but every panel still moves
   and folds, and the "Needs Epoch" call stays live. */
.live-spectate #mission-sidebar .tn-panel-body,
.live-spectate .workspace,
.live-spectate .workspace * {
    pointer-events: none;
    user-select: none;
}
.live-spectate .phase-list li { cursor: default; }
.live-spectate #btn-needs-epoch,
.live-spectate .chrome a { pointer-events: auto; }
.live-badge { color: var(--error); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.live-static-note { color: var(--error); }
#trust-fill { background: var(--entropy); }
#trust-fill.warning { background: var(--error); }

/* /live: Entropy's workspace as the seat feed sends it (static/js/live.js) */
.live-board { animation: scoreBoardReveal 0.3s ease-out; }
.live-flags { min-width: 0; }
.live-pin { row-gap: .15rem; }
.live-pin-label { font-weight: 600; }
.live-pin-formula { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.live-pin-value { color: var(--accent); }
.live-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem 1.5rem; margin-bottom: 1rem; }
.live-flag-list { list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.live-flag-list li { border: 1px solid var(--warning); border-radius: 6px; padding: .5rem .6rem; margin-bottom: .5rem; }
.live-flag-list code { font-family: ui-monospace, Consolas, monospace; }
.live-flag-list .ws-method { display: block; margin-top: .25rem; }

@keyframes scoreBoardReveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
