/* Live band on the anonymous landing page (templates/splash.html).
   Uses the splash palette (--orange, --surface, --border, --green, --red,
   --text-*). Server-rendered by Jinja; live values patched by splash_live.js. */

/* ---- hero live pill ---- */
.sl-live-pill {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: var(--orange);
    text-transform: uppercase;
}

.sl-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    margin-right: 2px;
    vertical-align: middle;
    animation: slPulse 1.6s ease-in-out infinite;
}
@keyframes slPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---- section ---- */
.live-band { padding: 56px 0; position: relative; z-index: 2; }
.live-band-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}
.live-band-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}
.live-band-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    text-decoration: none;
}
.live-band-link:hover { color: var(--orange-hover); }

/* ---- council cards ---- */
.live-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}
@media (max-width: 760px) { .live-cards { grid-template-columns: 1fr; } }

.live-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.live-card:hover { border-color: var(--orange); transform: translateY(-2px); }

.live-card-row { display: flex; align-items: baseline; justify-content: space-between; }
.live-card-ticker {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
}
.live-card-interval {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}
.live-card-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.live-card-chg { font-size: 12px; font-weight: 600; }
.live-card-chg.pos { color: var(--green); }
.live-card-chg.neg { color: var(--red); }

.live-card-dec { display: flex; align-items: center; gap: 8px; }
.dec-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border: 1px solid currentColor;
}
.dec-buy { color: var(--green); }
.dec-sell { color: var(--red); }
.dec-close { color: var(--orange); }
.dec-hold { color: var(--text-tertiary); }
.dec-conf {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-secondary);
}

.live-card-thesis {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 18px;
}
.live-card-foot {
    margin-top: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-tertiary);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--border-subtle);
}
.live-card-view { color: var(--orange); }

/* ---- battle teaser ---- */
.live-battle {
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 102, 0, 0.06), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
    padding: 24px 28px;
}
.live-battle-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.live-battle-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
}
.live-battle-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sl-live-inline { color: var(--orange); }
.sl-final { color: var(--text-secondary); }

.live-battle-body {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.lb-corner { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-corner-b { text-align: right; align-items: flex-end; }
.lb-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.lb-engine {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-tertiary);
}
.lb-pnl {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 26px;
}
.lb-pnl.pos { color: var(--green); }
.lb-pnl.neg { color: var(--red); }

/* VS emblem between the corners (mirrors the Live Battle broadcast). */
.lb-vs {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 102, 0, 0.22), rgba(20, 20, 20, 0.9) 72%);
    border: 1px solid var(--orange);
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.25), inset 0 0 12px rgba(255, 102, 0, 0.15);
}
.lb-vs-core {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--orange);
    z-index: 1;
}
/* Expanding pulse ring — only while live. */
.lb-vs-ring {
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid var(--orange);
    opacity: 0;
}
.lb-vs-live .lb-vs-ring { animation: lbVsPulse 1.9s ease-out infinite; }
@keyframes lbVsPulse {
    0% { transform: scale(0.92); opacity: 0.55; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* Equity race — full-width row beneath the corners. */
.lb-spark { width: 100%; height: 84px; margin-top: 18px; }
.lb-spark svg { width: 100%; height: 100%; display: block; }

@media (max-width: 520px) {
    .live-battle { padding: 18px 16px; }
    .live-battle-body { gap: 12px; }
    .lb-pnl { font-size: 20px; }
    .lb-name { font-size: 14px; }
    .lb-vs { width: 48px; height: 48px; }
    .lb-vs-core { font-size: 15px; }
}

.live-battle-cta {
    display: block;
    text-align: center;
    margin-top: 18px;
    width: 100%;
}
