/* =============================================================================
   🏆 WHY THIS PERSONALITY WON — explainability card CSS.
   ============================================================================= */

.panel-why-won {
    background:
        radial-gradient(ellipse at top right, rgba(255,216,107,0.06), transparent 60%),
        linear-gradient(180deg, rgba(28,20,55,0.94), rgba(10,8,24,0.97));
    border: 1px solid rgba(212,175,55,0.22);
    border-radius: 14px;
    padding: 22px 26px;
    margin-top: 18px;
    box-shadow:
        0 10px 32px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(212,175,55,0.10);
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */

.ww-header {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 18px;
    margin: 12px 0 16px;
    align-items: stretch;
}

.ww-active-card {
    background: linear-gradient(180deg, rgba(255,216,107,0.08), rgba(10,8,24,0.50));
    border: 1px solid rgba(255,216,107,0.30);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255,216,107,0.12);
}

.ww-active-name {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffd86b;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,216,107,0.40);
}

.ww-active-long {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 13px;
    font-style: italic;
    color: #b095f5;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.ww-active-score-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-top: 10px;
}

.ww-active-score {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    color: #ffd86b;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ww-active-decisive {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 10.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}
.ww-active-decisive.ww-decisive   { color: #88d8b0; background: rgba(136,216,176,0.10); border: 1px solid rgba(136,216,176,0.40); }
.ww-active-decisive.ww-contested  { color: #ff9d6b; background: rgba(255,157,107,0.10); border: 1px solid rgba(255,157,107,0.40); }

.ww-active-archetype {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12.5px;
    color: #ddc88a;
    font-style: italic;
    margin-top: 8px;
    line-height: 1.4;
    border-top: 1px dashed rgba(212,175,55,0.18);
    padding-top: 8px;
}

/* ── RUNNERS-UP ────────────────────────────────────────────────────────── */

.ww-runners-up {
    background: rgba(10,8,24,0.55);
    border: 1px solid rgba(212,175,55,0.14);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ww-runners-up-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888aa0;
    font-style: italic;
}

.ww-runner {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 8px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
}

.ww-runner-role {
    color: #888aa0;
    font-style: italic;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ww-runner-id {
    color: #b095f5;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ww-runner-gap {
    text-align: right;
    color: #ff9d6b;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
}

.ww-nash-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(212,175,55,0.18);
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px;
}

.ww-nash-label {
    color: #888aa0;
    font-style: italic;
}

.ww-nash-value {
    color: #ffd86b;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.ww-nash-agree  { color: #88d8b0 !important; }
.ww-nash-dispute { color: #ff7b9d !important; }

/* ── SIGNALS LIST ──────────────────────────────────────────────────────── */

.ww-signals-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888aa0;
    font-style: italic;
    margin-bottom: 8px;
}

.ww-signal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ww-signal-item {
    display: grid;
    grid-template-columns: 180px 1fr 70px;
    align-items: center;
    gap: 12px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
}

.ww-signal-label {
    color: #ddc88a;
    font-style: italic;
}

.ww-signal-bar {
    position: relative;
    height: 9px;
    background: rgba(255,255,255,0.04);
    border-radius: 4.5px;
    overflow: hidden;
}

.ww-signal-bar-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, #b095f5 0%, #ffd86b 100%);
    border-radius: 4.5px;
    box-shadow: 0 0 5px rgba(255,216,107,0.4);
    transition: width 0.7s cubic-bezier(0.25, 1.1, 0.4, 1);
}

.ww-signal-pct {
    text-align: right;
    color: #ffd86b;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 11.5px;
}

/* ── INTERPRETATION ─────────────────────────────────────────────────────── */

.ww-interp {
    background: linear-gradient(90deg, rgba(255,216,107,0.06), transparent 80%);
    border-left: 2px solid rgba(255,216,107,0.50);
    border-radius: 0 6px 6px 0;
    padding: 10px 16px;
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: #ddc88a;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */

.ww-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(212,175,55,0.14);
}

.ww-refresh-btn {
    background: rgba(255,216,107,0.10);
    color: #ffd86b;
    border: 1px solid rgba(255,216,107,0.30);
    border-radius: 999px;
    padding: 5px 14px;
    font-family: "Times New Roman", Georgia, serif;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.ww-refresh-btn:hover:not(:disabled) {
    background: rgba(255,216,107,0.20);
    transform: translateY(-1px);
}
.ww-refresh-btn:disabled { opacity: 0.55; cursor: progress; }

.ww-foot-note {
    font-family: "Times New Roman", Georgia, serif;
    font-style: italic;
    font-size: 11px;
    color: #888aa0;
}

@media (max-width: 900px) {
    .ww-header { grid-template-columns: 1fr; }
    .ww-signal-item { grid-template-columns: 130px 1fr 50px; }
}
