/* Estadísticas de fin de juego compartidas por ambas modalidades. */
.stats-grid {
    margin: 12px 0;
    text-align: left;
    background: rgba(5, 14, 9, 0.6);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(77, 255, 190, 0.15);
}
.stats-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.stats-row:last-child { margin-bottom: 0; }
.stats-label {
    font-family: "Press Start 2P", monospace;
    font-size: 0.5rem;
    color: #c9e8d2;
    white-space: nowrap;
}
.stats-bar-container {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    overflow: hidden;
}
.stats-bar {
    height: 100%;
    border-radius: 7px;
    transition: width 0.4s ease;
    min-width: 4px;
    box-shadow: 0 0 8px currentColor;
}
.stats-count {
    font-family: "Press Start 2P", monospace;
    font-size: 0.52rem;
    color: #4DFFBE;
    min-width: 32px;
    text-align: right;
}
/* En cada mitad se conserva la composición del resultado individual. */
.result-card .result-mask {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    margin: 10px 0;
    filter: drop-shadow(0 0 10px rgba(77, 255, 190, 0.4));
}
.result-card h3 { color: var(--result-level-color); letter-spacing: normal; }
.result-card .narrative {
    font-family: "Press Start 2P", monospace;
    font-size: 0.55rem;
    font-style: normal;
    line-height: 1.7;
    color: #c9e8d2;
}
.result-card .summary {
    font-family: "Press Start 2P", monospace;
    font-size: 0.5rem;
    color: #7da587;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.result-card .replay-result {
    background: var(--result-level-color);
    border-color: var(--result-level-color);
    box-shadow: none;
    border-radius: 8px;
}
.result-card .change-participant {
    width: auto;
    margin-top: 12px;
    background: #6c757d;
    border-color: #6c757d;
    box-shadow: none;
    border-radius: 8px;
}
.result-card .participant-code { font-family: "Press Start 2P", monospace; font-size: .55rem; line-height: 1.7; }
.result-card .result-score { font: .55rem/1.7 "Press Start 2P", monospace; }
.result-card .sabio-highlight { box-shadow: 0 0 12px #8c00ff, 0 0 24px #8c00ff; }
@media (prefers-reduced-motion: reduce) { .stats-bar { transition: none; } }
